Tidy up the script load request's progress enum
Categories
(Core :: JavaScript Engine, task, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox100 | --- | fixed |
People
(Reporter: jonco, Assigned: jonco)
References
Details
Attachments
(4 files)
There's a couple of oddities about the way this works. There's a separate 'cancelled' boolean that really should be part of this state. Also it includes a state for when we're requesting source only (rather than bytecode) that would be better handled by a separate flag.
Assignee | ||
Comment 1•2 years ago
|
||
This also renames 'loading' enum values to 'fetching' since this is more
specific. Loading covers the whole process of loading, which includes the other
states.
Enum values have the leading 'e' removed in line with the coding style for enum
classes.
Assignee | ||
Comment 2•2 years ago
|
||
This is used when we explicitly don't want to load cached bytecode. It is
better served by a separate flag in the request than a state.
Depends on D142041
Assignee | ||
Comment 3•2 years ago
|
||
Previously a separate field, this makes more sense as a state in its own right.
Depends on D142042
Assignee | ||
Comment 4•2 years ago
|
||
Depends on D142043
Pushed by jcoppeard@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/1c5d8b97d832 Part 1: Rename ScriptLoadRequest progress enum to 'State' r=smaug https://hg.mozilla.org/integration/autoland/rev/20b003843eef Part 2: Split out script load request state for when we require loading from source r=smaug https://hg.mozilla.org/integration/autoland/rev/d5a5bb17fea9 Part 3: Add script load request cancelled state r=smaug https://hg.mozilla.org/integration/autoland/rev/0ea212923238 Part 4: Rename state accessor methods after the enum values r=smaug
Comment 6•2 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/1c5d8b97d832
https://hg.mozilla.org/mozilla-central/rev/20b003843eef
https://hg.mozilla.org/mozilla-central/rev/d5a5bb17fea9
https://hg.mozilla.org/mozilla-central/rev/0ea212923238
Description
•