diff options
-rw-r--r-- | content/public/android/java/src/org/chromium/content/browser/accessibility/BrowserAccessibilityManager.java | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/content/public/android/java/src/org/chromium/content/browser/accessibility/BrowserAccessibilityManager.java b/content/public/android/java/src/org/chromium/content/browser/accessibility/BrowserAccessibilityManager.java index 2327316..e0ce947 100644 --- a/content/public/android/java/src/org/chromium/content/browser/accessibility/BrowserAccessibilityManager.java +++ b/content/public/android/java/src/org/chromium/content/browser/accessibility/BrowserAccessibilityManager.java @@ -49,11 +49,6 @@ public class BrowserAccessibilityManager { private boolean mPendingScrollToMakeNodeVisible; private boolean mFrameInfoInitialized; - // If this is true, enables an experimental feature that focuses the web page after it - // finishes loading. Disabled for now because it can be confusing if the user was - // trying to do something when this happens. - private boolean mFocusPageOnLoad; - /** * Create a BrowserAccessibilityManager object, which is owned by the C++ * BrowserAccessibilityManagerAndroid instance, and connects to the content view. @@ -334,12 +329,8 @@ public class BrowserAccessibilityManager { private void handlePageLoaded(int id) { if (mUserHasTouchExplored) return; - if (mFocusPageOnLoad) { - // Focus the natively focused node (usually document), - // if this feature is enabled. - mAccessibilityFocusId = id; - sendAccessibilityEvent(id, AccessibilityEvent.TYPE_VIEW_ACCESSIBILITY_FOCUSED); - } + mAccessibilityFocusId = id; + sendAccessibilityEvent(id, AccessibilityEvent.TYPE_VIEW_ACCESSIBILITY_FOCUSED); } @CalledByNative |