Closed
Bug 1511805
Opened 6 years ago
Closed 5 years ago
URL bar code shouldn't alter DOM in promiseDocumentFlushed()
Categories
(Firefox :: Address Bar, enhancement, P1)
Firefox
Address Bar
Tracking
()
RESOLVED
FIXED
Firefox 66
People
(Reporter: Gijs, Assigned: mconley)
References
Details
(Keywords: perf, Whiteboard: [fxsearch])
Attachments
(1 file)
I reviewed this so I it's my own fault, but altering the DOM from within the promiseDocumentFlushed() call isn't allowed. https://searchfox.org/mozilla-central/rev/2edebf41a2b2e624859bf15ed5a98bdd002f73b4/browser/base/content/urlbarBindings.xml#1382 I don't know what the constraints are for how quickly we need to set this attribute and if we can just stick it in a requestAnimationFrame or if we should await the promise, or something else.
Reporter | ||
Comment 1•6 years ago
|
||
Note that we should also fix browser/components/urlbar/UrlbarInput.jsm in the same way, of course.
Updated•6 years ago
|
Blocks: quantumbar-input
Comment 2•6 years ago
|
||
I think we can wait for animation frame, provided we check overflow status like we do now before setting the attribute
Updated•6 years ago
|
Priority: -- → P1
Whiteboard: [fxsearch]
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Updated•5 years ago
|
Assignee: nobody → mconley
Assignee | ||
Comment 3•5 years ago
|
||
Pushed by mconley@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/f41e4d6e5592 Don't alter DOM inside of promiseDocumentFlushed used by urlbarBindings.xml. r=mak
Comment 5•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/f41e4d6e5592
Status: NEW → RESOLVED
Closed: 5 years ago
status-firefox66:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 66
Updated•5 years ago
|
You need to log in
before you can comment on or make changes to this bug.
Description
•