| commit | fee00605cada877c1f8e3aae758a0f8d05b64476 | [log] [tgz] |
|---|---|---|
| author | Joel Einbinder <[email protected]> | Sat Apr 07 08:40:49 2018 |
| committer | Commit Bot <[email protected]> | Sat Apr 07 08:40:49 2018 |
| tree | f8cebfaa4f1b9360d75d17e09f44a168bdfda757 | |
| parent | 03d19073316fa05e74e6e39539da570aaa4f6b24 [diff] |
DevTools: Allow getPartialAXTree to be used with RemoteObject ids This aligns getPartialAXTree with other methods like DOM.Focus and DOM.getBoxModel in accepting a nodeId, backendNodeId, or objectId. It also allows for getPartialAXTree to be used without enabling the DOM agent. Change-Id: Ib49eedd4cd5127e9446445cc8ca164f160432256 Reviewed-on: https://chromium-review.googlesource.com/1000713 Commit-Queue: Joel Einbinder <[email protected]> Reviewed-by: Pavel Feldman <[email protected]> Cr-Original-Commit-Position: refs/heads/master@{#549052} Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src Cr-Mirrored-Commit: e49974f90f84c69699bb2a9128cb64e43a36d5e3
diff --git a/front_end/accessibility/AccessibilityModel.js b/front_end/accessibility/AccessibilityModel.js index 91ea3d1..6dd0923 100644 --- a/front_end/accessibility/AccessibilityModel.js +++ b/front_end/accessibility/AccessibilityModel.js
@@ -245,7 +245,7 @@ * @return {!Promise} */ async requestPartialAXTree(node) { - const payloads = await this._agent.getPartialAXTree(node.id, true); + const payloads = await this._agent.getPartialAXTree(node.id, undefined, undefined, true); if (!payloads) return;