mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-25 02:40:22 -10:00
getCssPath and getXPath will need to reuse the same logic as findCssSelector to handle shadowDOM support. This patch moves the methods next to findCssSelector, in toolkit's css-selector.js to avoid duplicating logic between devtools/ and toolkit/ The content of the methods is stricltly the same, except for the Node global not available in css-selector.js. Instead we use `ele.ownerGlobal.Node` here. MozReview-Commit-ID: J0KuORWLUoO