Files
tubestation/browser/components/extensions
Rob Wu 00721b4297 Bug 1713120 - Fix TypeError: n.getAttribute is not a function in ext-pageAction.js r=rpl
The reported error happens because `.parentNode` can be a document,
which doesn't implement the Element interface. Using `.parentElement`
solves this issue.

And while I'm fixing this: move the logic behind the menu ID check, so
that the logic is not unnecessarily run for non-pageAction contextmenus.

Differential Revision: https://phabricator.services.mozilla.com/D116138
2021-05-27 17:30:03 +00:00
..