Closed Bug 1305725 Opened 9 years ago Closed 1 year ago

Emphasized highlight is wrongly positioned after multiple browser resize

Categories

(Toolkit :: Find Toolbar, defect)

52 Branch
defect

Tracking

()

RESOLVED WORKSFORME
Tracking Status
firefox52 --- wontfix

People

(Reporter: roxana.leitan, Unassigned)

References

()

Details

Attachments

(1 file)

Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:52.0) Gecko/20100101 Firefox/52.0 Build ID: 20160927030200 [Affected versions]: Nightly 52.0a1 [Affected platforms]: Ubuntu 16.04 x64, Windows 10 x64 [Steps to reproduce]: 1.Launch Nightly 52.0a1 with a new profile 2.Open https://www.washingtonpost.com/ 3.Open Find Bar (Ctrl+F) 4.Search for "Of" 5.Resize browser multiple times by dragging browser margins using the mouse [Expected result]: Emphasized highlight should follow browser resize [Actual result]: Emphasized highlight is wrongly positioned
Assignee: nobody → mdeboer
Status: NEW → ASSIGNED
Comment on attachment 8817493 [details] Bug 1305725 - remove iffy content change detection and paint selectively after each paint. Also implement a slow tailing repaint sweep to anticipate slow reflows. https://reviewboard.mozilla.org/r/97734/#review98732 r=me with the below issues addressed. ::: toolkit/modules/FinderHighlighter.jsm:1139 (Diff revision 1) > > this._updateRangeOutline(dict); > > let allRects = []; > if (paintContent || dict.modalHighlightAllMask) { > + // No need to update dynamic ranges separately when we already about to nit, s/when we already/when we are already/ ::: toolkit/modules/FinderHighlighter.jsm:1249 (Diff revision 1) > dict.unconditionalRepaintRequested = false; > this._repaintHighlightAllMask(window); > + > + // Make sure to do a sweep repaint of the highlights after delayed, JS > + // and timer based content reflows that take more time to complete than > + // 'MozAfterPaint' to fire. See bug 1305725 for more info. There isn't really more info in bug 1305725 right now. Can you explain more there? Otherwise this comment might as well explain it. ::: toolkit/modules/FinderHighlighter.jsm:1252 (Diff revision 1) > + // Make sure to do a sweep repaint of the highlights after delayed, JS > + // and timer based content reflows that take more time to complete than > + // 'MozAfterPaint' to fire. See bug 1305725 for more info. > + dict.modalRepaintSweepScheduler = window.setTimeout( > + this._scheduleRepaintOfMask.bind(this, window, { updateAllRanges: true }), > + kModalHighlightRepaintLoFreqMs * 2); Why are we doubling kModalHighlightRepaintLoFreqMs? I'm worried that this effectively gets us away from the constant and down the road we could have multiple places that use different multiples of the constant without clear explanation as to why.
Attachment #8817493 - Flags: review?(jaws) → review+
Too late for firefox 52, mass-wontfix.

The bug assignee didn't login in Bugzilla in the last 7 months, so the assignee is being reset.

Assignee: mdeboer → nobody
Status: ASSIGNED → NEW
Severity: normal → S3

I am closing this as WFM as it is no longer reproducible with our latest nightly build 132.0a1 (2024-09-23) using Win 10, Ubuntu 22 and macOS 11.

Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: