Open Bug 1890733 Opened 3 months ago Updated 2 days ago

Text-Fragments: Strip fragment directive from URL regardless of pref value

Categories

(Core :: DOM: Navigation, task)

task

Tracking

()

People

(Reporter: jjaschke, Assigned: jjaschke)

References

(Blocks 1 open bug)

Details

As suggested here, stripping the fragment directive from a URL while the feature is not enabled yet allows navigating to a fallback fragment, giving users a better experience than not scrolling at all.

The logic to parse a fragment directive and strip it from an URL is implemented in bug 1867939, and currently gated behind the dom.text_fragments.enabled pref. It can simply be excluded from the pref check.

Would extensions still "see" the non-striped original version of the URL?

If not, wouldn't this effectively prevent all these extensions [1] from working? These are the only option to have more or less "Chromium-compatible" browser in this regard until native text fragments will ship.

[1] https://addons.mozilla.org/en-US/firefox/search/?q=Text%20Fragment&type=extension

You need to log in before you can comment on or make changes to this bug.