Closed Bug 1846465 Opened 2 years ago Closed 9 months ago

Make source editor search UI persistent

Categories

(DevTools :: Source Editor, defect, P2)

Firefox 115
defect

Tracking

(firefox137 fixed)

RESOLVED FIXED
137 Branch
Tracking Status
firefox137 --- fixed

People

(Reporter: ris58h, Assigned: nchevobbe)

References

(Blocks 3 open bugs)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/115.0

Steps to reproduce:

  1. Open some site with CSS.
  2. Open Developer Tools > Style Editor.
  3. Focus a content of a stylesheet and press Ctrl+F (Cmd+F on macOS).
  4. Try to search something.

Actual results:

After a user hits enter search results are highlighted but search interface disappears and focus goes to the editor.

Expected results:

Same as for Find in Page. Hitting Enter shouldn't hide the search interface and subsequent Enter keystroke should jump to the next instance.

The Bugbug bot thinks this bug should belong to the 'DevTools::Style Editor' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Style Editor
Product: Firefox → DevTools

Thanks, although I feel like this is more or less a duplicate of the various bugs under the meta Bug 973117. The Style Editor search UI is lacking and needs to be overhauled.

Blocks: 973117
Status: UNCONFIRMED → NEW
Ever confirmed: true
Blocks: 1916167
No longer blocks: 1916167
Component: Style Editor → Source Editor

Overriding the search shortcut allows us to execute the findPersistent command,
which prevents the search input to be closed when the user hit Enter.

A test is added to cover the new functionality.

Assignee: nobody → nchevobbe
Status: NEW → ASSIGNED
Blocks: 934624, 1941575
Type: enhancement → defect
Keywords: regression
Regressed by: 973117, 934624, 1941575
Summary: Style Editor search in file UX is confusing → Make source editor search UI persistent
Duplicate of this bug: 1946793
No longer regressed by: 934624, 973117, 1941575
Keywords: regression
Severity: -- → S3
Priority: -- → P2
Pushed by nchevobbe@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/a0c8e81abd31 [devtools] Make codemirror 5 built-in search UI persistent. r=devtools-reviewers,ochameau.
Status: ASSIGNED → RESOLVED
Closed: 9 months ago
Resolution: --- → FIXED
Target Milestone: --- → 137 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: