Write test to ensure OS.File is not imported in the startup path (before opening first browser window)
Categories
(Toolkit Graveyard :: OS.File, task, P3)
Tracking
(firefox97 fixed)
Tracking | Status | |
---|---|---|
firefox97 | --- | fixed |
People
(Reporter: emmamalysz, Assigned: standard8)
References
Details
Attachments
(1 file)
(deleted),
text/x-phabricator-request
|
Details |
We should make sure that any future modules do not import osfile.jsm by mistake and instead use IOUtils
Updated•4 years ago
|
Updated•4 years ago
|
Assignee | ||
Comment 1•3 years ago
|
||
I've just filed a set of mentored bugs that I think will be enough to get us in a state where we can add osfile.jsm
to the deny lists in browser_startup.js
for at least the "before opening first browser window" point. There may be more needed, but it is a little hard to tell at the moment.
I think we'll probably need bug 1649599 and bug 1649605 for "before first paint" - however, lets go for the earliest option first to begin to be able to block it, and we can progressively move it even later as we progress.
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Comment 2•3 years ago
|
||
Also fixes one use in XPIInstall.jsm.
Updated•3 years ago
|
Assignee | ||
Updated•3 years ago
|
Comment 4•3 years ago
|
||
bugherder |
Comment 5•3 years ago
|
||
Backed out for causing Bug 1736189
Backout link: https://hg.mozilla.org/integration/autoland/rev/772dfe279def087d275150ef1cc57350c05cdae2
Comment 6•3 years ago
|
||
Backout merged to central: https://hg.mozilla.org/mozilla-central/rev/772dfe279def087d275150ef1cc57350c05cdae2
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Comment 7•3 years ago
|
||
I'm changing where we catch to slightly later - "before handling user events", as bug 1649605 has landed since this originally landed, which clears us loading OS.File until after that.
Updated•3 years ago
|
Updated•3 years ago
|
Assignee | ||
Comment 8•3 years ago
|
||
Unfortunately I spoke too soon and didn't wait on the try server results. There's still a few more cases before we can clear the idle section as well. I've filed bug 1745459 as a follow-up to move the block later in startup.
Comment 10•3 years ago
|
||
bugherder |
Updated•2 years ago
|
Description
•