Closed
Bug 1363864
Opened 8 years ago
Closed 7 years ago
Add MozBeforeInitialXULLayout event
Categories
(Core :: DOM: Core & HTML, enhancement, P3)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla59
Tracking | Status | |
---|---|---|
firefox59 | --- | fixed |
People
(Reporter: zbraniecki, Assigned: zbraniecki)
References
Details
Attachments
(1 file, 1 obsolete file)
In bug 1347798 we're adding a small per-document JS code that enables DOM localization using the new API.
At the moment, we only translate the document on window.onready, but it may be better to do this before layout.
Assignee | ||
Comment 1•8 years ago
|
||
Assignee | ||
Updated•8 years ago
|
Comment 2•8 years ago
|
||
Could we call the events something like Before/AfterInitialLayout
Comment 3•8 years ago
|
||
Maybe even Before/AfterInitialXULLayout
Assignee | ||
Comment 4•8 years ago
|
||
Sure! I'm not even yet at the stage where I'd know if I need it. Just wanted to dump my patches into bugzilla.
If I'll get it on track to land I'll rename. Thanks :)
Updated•8 years ago
|
Priority: -- → P3
Assignee | ||
Updated•7 years ago
|
Assignee | ||
Updated•7 years ago
|
Assignee | ||
Updated•7 years ago
|
Summary: Add MozBeforeLayout event → Add MozBeforeInitialXULLayout event
Comment hidden (mozreview-request) |
Assignee | ||
Updated•7 years ago
|
Attachment #8866504 -
Attachment is obsolete: true
Assignee | ||
Comment 6•7 years ago
|
||
While profiling Preferences with Fluent we noticed that the localization is applied way too late[0], which brought me back to this event.
With this event we can trigger DOM localization right before layout is started which prevents FOUCs.
[0] https://searchfox.org/mozilla-central/rev/c8e791091973825680bbba807fc1c4f5bda0f5a1/intl/l10n/l10n.js#17
Comment 7•7 years ago
|
||
mozreview-review |
Comment on attachment 8937210 [details]
Bug 1363864 - Add MozBeforeInitialXULLayout event.
https://reviewboard.mozilla.org/r/207930/#review213902
Attachment #8937210 -
Flags: review?(bugs) → review+
Pushed by zbraniecki@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/16471f5143c7
Add MozBeforeInitialXULLayout event. r=smaug
Comment 9•7 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
status-firefox59:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla59
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•