Merge to m65: Exclude chrome urls from focus recovery

TBR=dtseng@chromium.org

Bug: 793754
Cq-Include-Trybots: master.tryserver.chromium.linux:closure_compilation
Change-Id: Ia452a9c25fbd35b0ccc91ac6572e3e5c11dc8418
Reviewed-on: https://chromium-review.googlesource.com/926221
Reviewed-by: Dominic Mazzoni <dmazzoni@chromium.org>
Commit-Queue: Dominic Mazzoni <dmazzoni@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#537818}
Reviewed-on: https://chromium-review.googlesource.com/927840
Reviewed-by: David Tseng <dtseng@chromium.org>
Cr-Commit-Position: refs/branch-heads/3325@{#526}
Cr-Branched-From: bc084a8b5afa3744a74927344e304c02ae54189f-refs/heads/master@{#530369}
diff --git a/chrome/browser/resources/chromeos/chromevox/cvox2/background/desktop_automation_handler.js b/chrome/browser/resources/chromeos/chromevox/cvox2/background/desktop_automation_handler.js
index 5473c39..88bee3a 100644
--- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/desktop_automation_handler.js
+++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/desktop_automation_handler.js
@@ -611,7 +611,9 @@
     var url = focusedRoot.docUrl;
     url = url.substring(0, url.indexOf('#')) || url;
     var pos = cvox.ChromeVox.position[url];
-    if (pos) {
+
+    // Disallow recovery for chrome urls.
+    if (pos && url.indexOf('chrome://') != 0) {
       focusedRoot.hitTestWithReply(
           pos.x, pos.y, this.onHitTestResult.bind(this));
       return;