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

Unified Diff: third_party/WebKit/Source/modules/accessibility/AXNodeObject.cpp

Issue 2119893002: Native text field elements shouldn't allow aria-owns children. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 6 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
« no previous file with comments | « third_party/WebKit/LayoutTests/accessibility/aria-owns-ignores-leafs.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/modules/accessibility/AXNodeObject.cpp
diff --git a/third_party/WebKit/Source/modules/accessibility/AXNodeObject.cpp b/third_party/WebKit/Source/modules/accessibility/AXNodeObject.cpp
index ce6c8ae131c6d02696b0c93413799abb8f8562f5..176a48c22a4dae8e21ccf8f2e1964df99cea1061 100644
--- a/third_party/WebKit/Source/modules/accessibility/AXNodeObject.cpp
+++ b/third_party/WebKit/Source/modules/accessibility/AXNodeObject.cpp
@@ -2188,7 +2188,7 @@ void AXNodeObject::computeAriaOwnsChildren(HeapVector<Member<AXObject>>& ownedCh
return;
Vector<String> idVector;
- if (canHaveChildren())
+ if (canHaveChildren() && !isNativeTextControl() && !hasContentEditableAttributeSet())
tokenVectorFromAttribute(idVector, aria_ownsAttr);
axObjectCache().updateAriaOwns(this, idVector, ownedChildren);
« no previous file with comments | « third_party/WebKit/LayoutTests/accessibility/aria-owns-ignores-leafs.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698