Changeset 241547 in webkit
- Timestamp:
- Feb 14, 2019 9:06:03 AM (5 years ago)
- Location:
- trunk/Source
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r241493 r241547 1 2019-02-13 Brian Burg <bburg@apple.com> 2 3 Web Inspector: don't include accessibility role in DOM.Node object payloads 4 https://bugs.webkit.org/show_bug.cgi?id=194623 5 <rdar://problem/36384037> 6 7 Reviewed by Devin Rousso. 8 9 Remove property of DOM.Node that is no longer being sent. 10 11 * inspector/protocol/DOM.json: 12 1 13 2019-02-13 Keith Miller <keith_miller@apple.com> and Yusuke Suzuki <ysuzuki@apple.com> 2 14 -
trunk/Source/JavaScriptCore/inspector/protocol/DOM.json
r241110 r241547 66 66 { "name": "templateContent", "$ref": "Node", "optional": true, "description": "Content document fragment for template elements" }, 67 67 { "name": "pseudoElements", "type": "array", "items": { "$ref": "Node" }, "optional": true, "description": "Pseudo elements associated with this node." }, 68 { "name": "role", "type": "string", "optional": true, "description": "Computed value for first recognized role token, default role per element, or overridden role." },69 68 { "name": "contentSecurityPolicyHash", "type": "string", "optional": true, "description": "Computed SHA-256 Content Security Policy hash source for given element." } 70 69 ] -
trunk/Source/WebCore/ChangeLog
r241546 r241547 1 2019-02-13 Brian Burg <bburg@apple.com> 2 3 Web Inspector: don't include accessibility role in DOM.Node object payloads 4 https://bugs.webkit.org/show_bug.cgi?id=194623 5 <rdar://problem/36384037> 6 7 Reviewed by Devin Rousso. 8 9 Accessibility properties are complicated to fetch at all the points where we want to build and push nodes immediately. 10 Turning on AX often indirectly causes style recalc and layout. This is bad because we are often building nodes in the 11 first place due to a DOM node tree update (i.e., NodeInserted). 12 13 It turns out that DOM.getAccessibilityPropertiesForNode is called every time we display 14 the computed role in the Elements Tab > Nodes Sidebar > Accessibility Section. So it is not 15 necessary to collect this information in a problematic way when initially pushing the node, as 16 it will be updated anyway. 17 18 No new tests, no change in behavior. 19 20 * inspector/agents/InspectorDOMAgent.cpp: 21 (WebCore::InspectorDOMAgent::buildObjectForNode): 22 1 23 2019-02-14 Zalan Bujtas <zalan@apple.com> 2 24 -
trunk/Source/WebCore/inspector/agents/InspectorDOMAgent.cpp
r241495 r241547 1595 1595 } 1596 1596 1597 // Need to enable AX to get the computed role.1598 if (!WebCore::AXObjectCache::accessibilityEnabled())1599 WebCore::AXObjectCache::enableAccessibility();1600 1601 if (AXObjectCache* axObjectCache = node->document().axObjectCache()) {1602 if (AccessibilityObject* axObject = axObjectCache->getOrCreate(node))1603 value->setRole(axObject->computedRoleString());1604 }1605 1606 1597 return value; 1607 1598 } -
trunk/Source/WebInspectorUI/UserInterface/Models/DOMNode.js
r240884 r241547 49 49 this._pseudoType = payload.pseudoType; 50 50 this._shadowRootType = payload.shadowRootType; 51 this._computedRole = payload.role;51 this._computedRole = null; 52 52 this._contentSecurityPolicyHash = payload.contentSecurityPolicyHash; 53 53 … … 587 587 { 588 588 if (!error && callback && accessibilityProperties) { 589 this._computedRole = accessibilityProperties.role; 590 589 591 callback({ 590 592 activeDescendantNodeId: accessibilityProperties.activeDescendantNodeId,
Note: See TracChangeset
for help on using the changeset viewer.