Closed
Bug 1426140
Opened 6 years ago
Closed 6 years ago
JS module tests related to error handling currently fail
Categories
(Core :: DOM: Core & HTML, defect, P3)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla59
Tracking | Status | |
---|---|---|
firefox59 | --- | fixed |
People
(Reporter: jonco, Assigned: jonco)
References
Details
Attachments
(3 files)
11.95 KB,
patch
|
baku
:
review+
|
Details | Diff | Splinter Review |
13.50 KB,
patch
|
baku
:
review+
|
Details | Diff | Splinter Review |
6.67 KB,
patch
|
baku
:
review+
|
Details | Diff | Splinter Review |
The following web platform tests currently fail: html/semantics/scripting-1/the-script-element/module/load-error-events-inline.html html/semantics/scripting-1/the-script-element/module/errorhandling.html
Assignee | ||
Comment 1•6 years ago
|
||
Factor out error handling from ScriptLoader::OnStreamComplete() into a new method. I moved the test for NS_BINDING_RETARGETED to before the call to HandleError. I don't think it's possible for rv to be NS_ERROR_TRACKING_URI while aChannelError is NS_BINDING_RETARGETED so this shouldn't matter.
Attachment #8937745 -
Flags: review?(amarchesini)
Assignee | ||
Comment 2•6 years ago
|
||
While I was there I broke OnStreamComplete up a bit to make it easier to follow.
Attachment #8937746 -
Flags: review?(amarchesini)
Assignee | ||
Comment 3•6 years ago
|
||
Now the fix. Call ProcessFetchedModuleSource and HandleLoadError for inline module scripts and move the call to SetModuleFetchFinishedAndResumeWaitingRequests to HandleError for the error case so that it gets called for fetch errors that happen before ProcessFetchedModuleSource gets called.
Attachment #8937756 -
Flags: review?(amarchesini)
Assignee | ||
Updated•6 years ago
|
Priority: -- → P3
Updated•6 years ago
|
Attachment #8937745 -
Flags: review?(amarchesini) → review+
Comment 4•6 years ago
|
||
Comment on attachment 8937746 [details] [diff] [review] bug1426140-2-refactor-onstreamcomplete Review of attachment 8937746 [details] [diff] [review]: ----------------------------------------------------------------- maybe some of those new methods can be const. ::: dom/script/ScriptLoader.cpp @@ +2872,5 @@ > } > > void > +ScriptLoader::ReportErrorToConsole(ScriptLoadRequest *aRequest, nsresult aResult) > +{ MOZ_ASSERT(aRequest);
Attachment #8937746 -
Flags: review?(amarchesini) → review+
Updated•6 years ago
|
Attachment #8937756 -
Flags: review?(amarchesini) → review+
Pushed by jcoppeard@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/2b06fe374260 Factor out error handling from ScriptLoader::OnStreamComplete r=baku https://hg.mozilla.org/integration/mozilla-inbound/rev/54ba9609db75 Factor out SRI handling from ScriptLoader::OnStreamComplete r=baku https://hg.mozilla.org/integration/mozilla-inbound/rev/a8f97458d0cc Handle errors for inline module scripts and ensure we update the module map after fetch errors r=baku
Comment 6•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/2b06fe374260 https://hg.mozilla.org/mozilla-central/rev/54ba9609db75 https://hg.mozilla.org/mozilla-central/rev/a8f97458d0cc
Status: NEW → RESOLVED
Closed: 6 years ago
status-firefox59:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla59
Updated•5 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•