Bug 963000 - Explore By Touch sometimes not working when Firefox is opened and automatically loads a web page. r=kats, a=sledru
authorMax Li <maxli@maxli.ca>
Sat, 01 Feb 2014 20:44:08 -0800
changeset 182655 e9f5361461a8d47ffa85e4ba5c6baf9374963da6
parent 182654 f36faa669bf26c2eb4a290eb48a38aed592f340a
child 182656 799ec5c3c327db2d8b5cb724fcd0225d37c09b52
push id3343
push userffxbld
push dateMon, 17 Mar 2014 21:55:32 +0000
treeherdermozilla-beta@2f7d3415f79f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskats, sledru
bugs963000
milestone29.0a2
Bug 963000 - Explore By Touch sometimes not working when Firefox is opened and automatically loads a web page. r=kats, a=sledru
mobile/android/base/GeckoAccessibility.java
--- a/mobile/android/base/GeckoAccessibility.java
+++ b/mobile/android/base/GeckoAccessibility.java
@@ -296,17 +296,17 @@ public class GeckoAccessibility {
                                 onInitializeAccessibilityNodeInfo(host, info);
                                 info.addChild(host, VIRTUAL_CURSOR_PREVIOUS);
                                 info.addChild(host, VIRTUAL_CURSOR_POSITION);
                                 info.addChild(host, VIRTUAL_CURSOR_NEXT);
                                 break;
                             default:
                                 info.setParent(host);
                                 info.setSource(host, virtualDescendantId);
-                                info.setVisibleToUser(host.isFocused());
+                                info.setVisibleToUser(host.isShown());
                                 info.setPackageName(GeckoAppShell.getContext().getPackageName());
                                 info.setClassName(host.getClass().getName());
                                 info.addAction(AccessibilityNodeInfo.ACTION_CLEAR_ACCESSIBILITY_FOCUS);
                                 info.addAction(AccessibilityNodeInfo.ACTION_ACCESSIBILITY_FOCUS);
                                 info.addAction(AccessibilityNodeInfo.ACTION_CLICK);
                                 info.addAction(AccessibilityNodeInfo.ACTION_LONG_CLICK);
                                 info.addAction(AccessibilityNodeInfo.ACTION_PREVIOUS_AT_MOVEMENT_GRANULARITY);
                                 info.addAction(AccessibilityNodeInfo.ACTION_NEXT_AT_MOVEMENT_GRANULARITY);