Closed Bug 1994518 Opened 10 months ago Closed 10 months ago

details tag: grouped details browser search bug

Categories

(Core :: Find Backend, defect)

Firefox 144
defect

Tracking

()

RESOLVED DUPLICATE of bug 1970909

People

(Reporter: constantin.schellhammer, Unassigned)

References

(Blocks 1 open bug)

Details

Steps to reproduce:

If multiple details tags are grouped via name attribute, then searching with Ctrl+F seems to not be able to keep the corresponding details tag open in case the search word appears in multiple details tags.

Steps to reproduce:
Search via Ctrl+F in 2 or more details tags containing the search word.

Actual results:

Closed details tags get opened temporarily.

Expected results:

Only the details tag with the active search word should open/stay open.

testcase:

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Bug</title>
  </head>
  <body>
    <details name="group">
      <summary>Summary 1</summary>
      <div>Content 1</div>
    </details>
    <details name="group" open>
      <summary>Summary 2</summary>
      <div>Content 2</div>
    </details>
  </body>
</html>
Component: Untriaged → Find Backend
Product: Firefox → Core
Blocks: 1724299

This sounds very familiar, does it ring a bell jan?

Flags: needinfo?(jjaschke)

This should be Bug 1970909. The fix shouldn't be too hard. Currently, every call to nsFind::Find does the auto-expanding dance. So, if find-in-page goes through the doc to find all occurrences, it expands every details element. A similar thing might happen when opening a page with a text fragment which has other matches inside of an "accordion" details group. I'll use Bug 1970909 to track this.

Status: UNCONFIRMED → RESOLVED
Closed: 10 months ago
Duplicate of bug: 1970909
Flags: needinfo?(jjaschke)
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.