Closed Bug 1820784 Opened 3 years ago Closed 3 years ago

Result highlighting from project search with regex modifier do not seem correct

Categories

(DevTools :: Debugger, defect, P2)

defect

Tracking

(firefox112 fixed, firefox113 fixed)

RESOLVED FIXED
113 Branch
Tracking Status
firefox112 --- fixed
firefox113 --- fixed

People

(Reporter: nchevobbe, Assigned: bomsy)

References

Details

Attachments

(2 files)

Attached image incorrect highlighting —

Steps to reproduce

  1. Go to https://nchevobbe.github.io/demo/console-test-app.html
  2. Open the debugger
  3. Open the project file search
  4. Enable regex modifier
  5. Search the following term import .* from "react"

Expected results

import React from "react" is highlighted

Actual results

the highlighter is only added to import React from "rea

Severity: -- → S3
Flags: needinfo?(hmanilla)
Priority: -- → P2
Assignee: nobody → hmanilla
Status: NEW → ASSIGNED
Pushed by hmanilla@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/70c2101251e2 [devtools] Fix highlight matches for regex search results r=nchevobbe,devtools-reviewers
Regressions: 1819531
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 113 Branch

bomsy, should we request an uplift since the regex search landed in 112 ?

Comment on attachment 9321814 [details]
Bug 1820784 - [devtools] Fix highlight matches for regex search results r=nchevobbe

Beta/Release Uplift Approval Request

  • User impact if declined: Wrong highlighting for regex project search results
  • Is this code covered by automated tests?: Yes
  • Has the fix been verified in Nightly?: Yes
  • Needs manual test from QE?: No
  • If yes, steps to reproduce:
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): It a tiny fix and includes a test.
  • String changes made/needed:
  • Is Android affected?: No
Flags: needinfo?(hmanilla)
Attachment #9321814 - Flags: approval-mozilla-beta?

:bomsy does any part of bug 1803616 need to be uplifted as well to avoid bug 1819531 in fx112?

Flags: needinfo?(hmanilla)

Oh yeah it does, the change to devtools/client/debugger/dist/search-worker.js. But if that is complex, its fine to let this just ride the train.

Flags: needinfo?(hmanilla)

Comment on attachment 9321814 [details]
Bug 1820784 - [devtools] Fix highlight matches for regex search results r=nchevobbe

Approved for 112.0b5

Attachment #9321814 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: