Guard document.dir access in Nova render paths for startup cache worker compatibility
Categories
(Firefox :: New Tab Page, defect)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox151 | --- | fixed |
People
(Reporter: maxx, Assigned: maxx)
References
Details
Attachments
(1 file)
When nova.enabled is true by default, three component render functions access document.dir unconditionally. The about:home startup cache is built via ReactDOMServer.renderToString inside a Web Worker where document is not defined, causing construction to fail silently and breaking the startup cache.
Guard each access with typeof document !== "undefined" in:
- WallpaperCategories.jsx
- SectionsMgmtPanel.jsx
- WidgetsManagementPanel.jsx
| Assignee | ||
Comment 1•1 month ago
|
||
The about:home startup cache is constructed via ReactDOMServer.renderToString inside a Web Worker where document is not defined. With nova.enabled now true by default, three render-path functions access document.dir unconditionally, causing startup cache construction to fail with "document is not defined".
Guard each access with typeof document !== "undefined" in WallpaperCategories, SectionsMgmtPanel, and WidgetsManagementPanel.
Updated•1 month ago
|
Comment 3•1 month ago
|
||
| bugherder | ||
Updated•1 month ago
|
Description
•