Find if slow on HTML spec when trying to find string 'entry update'
Categories
(Core :: Find Backend, defect)
Tracking
()
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)
47 bytes,
text/x-phabricator-request
|
RyanVM
:
approval-mozilla-beta-
|
Details | Review |
Load https://html.spec.whatwg.org
Open Find and try: entry update
Apparently this is a regression
Updated•4 years ago
|
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Comment 2•4 years ago
|
||
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.
Assignee | ||
Updated•4 years ago
|
Updated•4 years ago
|
Comment 3•4 years ago
|
||
Set release status flags based on info from the regressing bug 1654270
Updated•4 years ago
|
Comment 5•4 years ago
|
||
bugherder |
Assignee | ||
Comment 6•4 years ago
|
||
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
Assignee | ||
Updated•4 years ago
|
Updated•4 years ago
|
Comment 7•4 years ago
|
||
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 8•4 years ago
|
||
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.
Updated•4 years ago
|
Updated•4 years ago
|
Updated•4 years ago
|
Comment 9•4 years ago
|
||
Considering Comment 8, removing qe-verify+ flag and [qa-triaged] whiteboard.
Description
•