Open Bug 1790765 Opened 3 years ago Updated 3 years ago

ScriptLoader::MaybeMoveToLoadedList tolerates supposedly impossible state

Categories

(Core :: DOM: Core & HTML, task)

task

Tracking

()

REOPENED

People

(Reporter: jonco, Assigned: jonco)

References

Details

Attachments

(1 file)

This comment in ScriptLoader::MaybeMoveToLoadedList has always bothered me:

  // If it's async, move it to the loaded list.
  // aRequest->GetScriptLoadContext()->mInAsyncList really _should_ be in a
  // list, but the consequences if it's not are bad enough we want to avoid
  // trying to move it if it's not.

https://searchfox.org/mozilla-central/source/dom/script/ScriptLoader.cpp#3633-3636

I'd like to try replacing the check with a release assert so we fail fast rather than covering up a supposedly impossible state.

Pushed by jcoppeard@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/7cfadef6f30f Replace superstitious comment in ScriptLoader::MaybeMoveToLoadedList with release assertion r=smaug
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 106 Branch
Regressions: 1791309
Status: RESOLVED → REOPENED
Flags: needinfo?(jcoppeard)
Resolution: FIXED → ---
Target Milestone: 106 Branch → ---

There's a r+ patch which didn't land and no activity in this bug for 2 weeks.
:jonco, could you have a look please?
If you still have some work to do, you can add an action "Plan Changes" in Phabricator.
For more information, please visit auto_nag documentation.

Flags: needinfo?(smaug)
Flags: needinfo?(jcoppeard)

this was backed out.

Flags: needinfo?(smaug)
Flags: needinfo?(jcoppeard)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: