Closed Bug 1512674 Opened 2 years ago Closed 1 year ago
Investigate deferring Java
Script in browser .xul until after Moz Before Initial XULLayout fires
In order to support Fluent inside the prototype cache, we've discussed blocking scripts from running while the DOM is still being built so that we have a safe time to snapshot the DOM (after Fluent has processed it which is before MozBeforeInitialXULLayout). I guess we could either: (1) be careful in the frontend code: - make sure Custom Elements use delayConnectedCallback - hold off on doing subscript loading (i.e. stuff in scripts in global-scripts.inc) until after MozBeforeInitialXULLayout (2) Block all scripts (script tags, CE reactions, etc) from running in the document until that event fires. I'd prefer (2) if there's a mechanism in place for that - it seems like a more robust way to solve this. I'd also like if whatever we do could be accomplished by HTML documents in the future as well, since we are planning to ship browser.xul as browser.xhtml.
Changing the component to Core/XUL if this is an incorrect component, please set it to a better one, than reverting it to General. Thank you!
Component: General → XUL
Product: Firefox → Core
This is just fine in General.
Component: XUL → General
Priority: -- → P3
Product: Core → Firefox
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.