summaryrefslogtreecommitdiffstats
path: root/ui/accessibility
diff options
context:
space:
mode:
authordmazzoni@chromium.org <dmazzoni@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-06-13 06:46:38 +0000
committerdmazzoni@chromium.org <dmazzoni@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-06-13 06:46:38 +0000
commitf1f845fcbcc0f73e33c7a6ef4f71f312f9af238b (patch)
tree7e34ba550f12d1389c48651d6f324b586a82d9f7 /ui/accessibility
parentebd0c8e3264eecb56c565ae9e84fedcf859b1c72 (diff)
downloadchromium_src-f1f845fcbcc0f73e33c7a6ef4f71f312f9af238b.zip
chromium_src-f1f845fcbcc0f73e33c7a6ef4f71f312f9af238b.tar.gz
chromium_src-f1f845fcbcc0f73e33c7a6ef4f71f312f9af238b.tar.bz2
Fix bug where NVDA wouldn't enter browse mode on page load.
This started happening when we started sending events on web pages before they fully load. BUG=368549 NOTRY=true Review URL: https://codereview.chromium.org/332893004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@276944 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/accessibility')
-rw-r--r--ui/accessibility/ax_tree.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/ui/accessibility/ax_tree.cc b/ui/accessibility/ax_tree.cc
index c0ec9ac..359c8e2 100644
--- a/ui/accessibility/ax_tree.cc
+++ b/ui/accessibility/ax_tree.cc
@@ -157,8 +157,6 @@ bool AXTree::UpdateNode(
if (node) {
update_state->pending_nodes.erase(node);
node->SetData(src);
- if (delegate_)
- delegate_->OnNodeChanged(node);
} else {
if (src.role != AX_ROLE_ROOT_WEB_AREA) {
error_ = base::StringPrintf(
@@ -171,6 +169,9 @@ bool AXTree::UpdateNode(
node->SetData(src);
}
+ if (delegate_)
+ delegate_->OnNodeChanged(node);
+
// First, delete nodes that used to be children of this node but aren't
// anymore.
if (!DeleteOldChildren(node, src.child_ids)) {