]> git.gir.st - VimFx.git/commit
Remove last isXULDocument() references
authorgirst <girst@users.noreply.github.com>
Fri, 27 Dec 2019 01:09:05 +0000 (02:09 +0100)
committergirst <girst@users.noreply.github.com>
Fri, 27 Dec 2019 04:51:27 +0000 (05:51 +0100)
commita4e5da9d0d3cd37ed6339ca5151c7bc4daa67f87
tree13579d25cfff01e74667b7fc0be60de74a800e8b
parentdf0367e947cee47e6cb7f864469ff0a394463099
Remove last isXULDocument() references

== commands.follow ==
On XUL pages/windows, <body> does not exist (hence the check was put
in), but is `null`, so can be safely compared against (and the check can
be omitted).

== helper_follow ==
Since the last war on isXULDocument, the namespace has in many cases
been moved from the document root to a descendant (e.g. to <body> on
about:preferences in fx73). This means that the isXULDocument call often
isn't triggered when it should.
Coincidentally, most XULElements are recognized, either due to them
being implemented as a custom element containing a recognized element or
by their tag name being identical to a recognized one. The only
exception is <xul:label is="text-link">, which needed special handling
in commands.follow_in_tab().
extension/lib/commands-frame.coffee
extension/lib/utils.coffee
Imprint / Impressum