Open Bug 1908852 Opened 10 months ago Updated 10 months ago

The text fragment is not highlighted and focused if it is from a Wikipedia collapsed section

Categories

(Core :: DOM: Core & HTML, defect)

Firefox 130
All
Android
defect

Tracking

()

Tracking Status
firefox130 --- affected

People

(Reporter: vtamas, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Attached video wikipedia.mp4

Prerequisites

Make sure you have dom.text_fragments.enabled set to true.

Steps to reproduce

  1. Paste and navigate to the following link into the address bar: https://en.wikipedia.org/wiki/Nuclear_power#:~:text=up-,Most,reactors
  2. Observe the loaded page.

Expected behavior

The webpage is opened, the specified text fragment is highlighted and the page is scrolled to the highlighted section.

Actual behavior

The text fragment is not highlighted because it is in a collapsed section.

Device information

  • Firefox version: Firefox Nightly 130 (2024-07-18)
  • Android device model: Google Pixel 8 (Android 14), Samsung Galaxy S23 Ultra (Android 14)

Note that this works if you use https://addons.mozilla.org/firefox/downloads/file/4267777/text_fragment-0.7.xpi, so it's definitely a problem with FF's implementation.

If I'm not mistaken, Wikipedia uses hidden=until found, which is not implemented in Gecko yet, see bug 1761043. I have implementing this feature and integrating it with Text Fragments on my roadmap and will come back to this.

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

Attachment

General

Created:
Updated:
Size: