Summary: Make HTML <link> elements not query the browser history. This is unnecessary work, and matches other browsers (kinda, see below in the "Other browsers" section).

The TLDR is that even though this is technically required per spec as of today, it's a fairly obscure feature where there's no interop, and it causes issues unnecessarily, and extra history queries for no good reason.

Long term we should probably aim for <link> to not be traversable (even if you force-show it).

Bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1572246

Standard: https://drafts.csswg.org/selectors-4/#location (though note https://github.com/w3c/csswg-drafts/issues/3817).

Platform coverage: All

Preference: none

Devtools bug: N/A

Other browsers:

Behavior here is all over the place. We used to match the current spec text and WebKit, until http://trac.webkit.org/projects/webkit/changeset/244642 landed not long ago.

With this change, we'd match Edge and WebKit. Chrome is the only browser which doesn't consider <link> a :link to begin with, and you can't click on force-showed links.

We may want to aim for this behavior in the long run to simplify the code, since force-showing a <link> element doesn't seem useful over-all. That may or may not require changes in the HTML spec (https://html.spec.whatwg.org/#links).

 -- Emilio
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to