| Index: third_party/WebKit/Source/modules/accessibility/AXObjectCacheImpl.cpp
|
| diff --git a/third_party/WebKit/Source/modules/accessibility/AXObjectCacheImpl.cpp b/third_party/WebKit/Source/modules/accessibility/AXObjectCacheImpl.cpp
|
| index 15c14aa20fa614c2ca42dfdf146b3c810b8b3b67..9dfc29eabe1e1c5531120d893d96e03b257f99e2 100644
|
| --- a/third_party/WebKit/Source/modules/accessibility/AXObjectCacheImpl.cpp
|
| +++ b/third_party/WebKit/Source/modules/accessibility/AXObjectCacheImpl.cpp
|
| @@ -350,6 +350,9 @@ AXObjectImpl* AXObjectCacheImpl::GetOrCreate(Node* node) {
|
| if (!node)
|
| return 0;
|
|
|
| + if (!node->IsElementNode() && !node->IsTextNode() && !node->IsDocumentNode())
|
| + return 0; // Only documents, elements and text nodes get a11y objects
|
| +
|
| if (AXObjectImpl* obj = Get(node))
|
| return obj;
|
|
|
|
|