Closed Bug 1233171 Opened 9 years ago Closed 9 years ago

ScriptLoader should cancel channel when aborting due to cancelation

Categories

(Core :: DOM: Service Workers, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla46
Tracking Status
firefox46 --- fixed

People

(Reporter: bkelly, Assigned: bkelly)

References

Details

Attachments

(1 file)

In bug 1229970 I added a short-circuit failure path if another script in the load was canceled or failed.  That avoided a crash.

I see now, though, that I did not cancel the channel.  All the other error paths do this and so should this one.
Something I missed in the patch you reviewed for me last week.
Attachment #8699137 - Flags: review?(khuey)
Comment on attachment 8699137 [details] [diff] [review]
Cancel channel when ScriptLoader is aborted during service worker script load. r=khuey

Review of attachment 8699137 [details] [diff] [review]:
-----------------------------------------------------------------

Is it possible to test this somehow?
Attachment #8699137 - Flags: review?(khuey) → review+
I don't know how to write a test for this that wouldn't be incredibly racy.  I think this change is clearly correct, though, so I would like to land it.
https://hg.mozilla.org/mozilla-central/rev/bd4fe7efeb47
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla46
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: