]> git.gir.st - VimFx.git/commit
fix utils.isInShadowRoot
authorgirst <girst@users.noreply.github.com>
Sat, 3 Jun 2023 13:36:23 +0000 (15:36 +0200)
committergirst <girst@users.noreply.github.com>
Sat, 3 Jun 2023 14:36:15 +0000 (16:36 +0200)
commit28359952370ecdd107ff6ffa2c4a8dbc718c5adc
tree1951cfd1984cc69d2fc865bfa76592244a5439e4
parentae0fbd54d0d8655947835e8d0e04f2ec7eae8960
fix utils.isInShadowRoot

At some point before firefox 84, the global `ShadowRoot` object stopped
being === to the ShadowRoot returned by utils.getDocument. this caused
following links to not work because the special code paths for elements
within shadow roots was not taken any longer.

The check whether ShadowRoot is defined can be safely dropped, since
even though ChromeWindow doesn't export ShadowRoot itself, accessing it
through element.ownerGlobal still works.
extension/lib/utils.coffee
Imprint / Impressum