Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2459)

Unified Diff: content/renderer/accessibility/renderer_accessibility_complete.cc

Issue 275503002: Ignore accessibility events fired on objects that aren't in the tree. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/renderer/accessibility/renderer_accessibility_complete.cc
diff --git a/content/renderer/accessibility/renderer_accessibility_complete.cc b/content/renderer/accessibility/renderer_accessibility_complete.cc
index 4a9de8f017da41809f384d46e687d5b1ba59dbc4..c17b7417ca3a9411df703cab3435b63acfc2ee90 100644
--- a/content/renderer/accessibility/renderer_accessibility_complete.cc
+++ b/content/renderer/accessibility/renderer_accessibility_complete.cc
@@ -186,6 +186,8 @@ void RendererAccessibilityComplete::SendPendingAccessibilityEvents() {
event.id);
if (!obj.updateBackingStoreAndCheckValidity())
continue;
+ if (!tree_source_.IsInTree(obj))
Peter Lundblad 2014/05/07 23:03:24 Can you add some brief comment why the node wouldn
dmazzoni 2014/05/08 15:12:23 Done.
+ continue;
// When we get a "selected children changed" event, Blink
// doesn't also send us events for each child that changed

Powered by Google App Engine
This is Rietveld 408576698