Closed Bug 1663411 Opened 4 years ago Closed 4 years ago

Find if slow on HTML spec when trying to find string 'entry update'

Categories

(Core :: Find Backend, defect)

defect

Tracking

()

VERIFIED FIXED
82 Branch
Tracking Status
firefox-esr68 --- unaffected
firefox-esr78 --- unaffected
firefox80 --- wontfix
firefox81 --- wontfix
firefox82 --- verified

People

(Reporter: smaug, Assigned: emilio)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

Load https://html.spec.whatwg.org
Open Find and try: entry update

Apparently this is a regression

Has Regression Range: --- → yes
Flags: needinfo?(emilio)

So what's going on here is that there are pseudo-elements that contain
stuff like content: "Note" or content: "Example".

So when you're searching for "entry", we find the e, and then all the
text nodes afterwards are of course in a different subtree... So we end
up ignoring them, but after having iterated through all the DOM first.

To avoid this, change a bit the code so that we check for different
blocks before checking for different subtrees. There's no point to
keep matching once you're done with a block.

Flags: needinfo?(emilio)

Set release status flags based on info from the regressing bug 1654270

Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/b0674d532cab Improve the speed of find-in-page when ending a pseudo-element mid-match. r=jfkthame
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 82 Branch

Comment on attachment 9174199 [details]
Bug 1663411 - Improve the speed of find-in-page when ending a pseudo-element mid-match. r=jfkthame

Beta/Release Uplift Approval Request

  • User impact if declined: Find-in-page can be very slow in some cases.
  • Is this code covered by automated tests?: Yes
  • Has the fix been verified in Nightly?: Yes
  • Needs manual test from QE?: Yes
  • If yes, steps to reproduce: comment 0
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): I wouldn't say it's fully risk-free, but it seems like a nice, easy-ish perf win and this code is relatively well tested.
  • String changes made/needed: none
Attachment #9174199 - Flags: approval-mozilla-beta?
Flags: qe-verify+
QA Whiteboard: [qa-triaged]

Verified as fixed using the latest Nightly 82.0a1 (Build ID: 20200908215255) on Mac OS X 10.15, Windows 10 x64, and Ubuntu 18.04 X64 - the string "entry update" is properly found.

Comment on attachment 9174199 [details]
Bug 1663411 - Improve the speed of find-in-page when ending a pseudo-element mid-match. r=jfkthame

Given that this isn't a new problem, we're about to build our final beta of the cycle, and this doesn't appear to be a widespread issue, I think it would be better to let this ride the trains. Feel free to yell if you strongly disagree.

Attachment #9174199 - Flags: approval-mozilla-beta? → approval-mozilla-beta-
Flags: in-testsuite+
QA Whiteboard: [qa-triaged]
QA Whiteboard: [qa-triaged]

Considering Comment 8, removing qe-verify+ flag and [qa-triaged] whiteboard.

Status: RESOLVED → VERIFIED
QA Whiteboard: [qa-triaged]
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: