Closed Bug 1411528 Opened 7 years ago Closed 7 years ago

wpt redirected-response.https.htm service-worker test crashes in debug

Categories

(Core :: DOM: Service Workers, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: jgraham, Assigned: bkelly)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

On Windows it also causes OOM trying to call mozcrash, so disabling the test test for now.

Example log:

https://treeherder.mozilla.org/logviewer.html#?job_id=139311778&repo=try&lineNumber=39769
Pushed by james@hoppipolla.co.uk:
https://hg.mozilla.org/integration/mozilla-inbound/rev/c80fbf59afde
Disable service worker test for OOM during crash on Windows, a=testonly
Flags: needinfo?(bkelly)
Investigating.
Assignee: nobody → bkelly
Blocks: 1412015
Status: NEW → ASSIGNED
Flags: needinfo?(bkelly)
I believe this is happening due to changes I made in bug 1390638.  We didn't have this test coverage at the time, so I didn't catch it.
Blocks: 1390638
Comment on attachment 8922489 [details] [diff] [review]
Clear the intercept listening when synthesizing a redirect in HttpChannelChild. r=asuth

Andrew, the WPT test case that is crashing is doing :

  `respondWith(Response.redirect(url2))`

For an outer `fetch(url1, { redirect: 'error' })`.

This means we are trying to synthesize a redirect, but that the channel will end up being canceled because of the RequestRedirect being set to "error".

When Cancel() is called during the "maybe synthesizing a redirect" step we end up calling AsyncAbort() because mInterceptListener is set.  However, we also have a remote actor here that also is canceling.  So we end up getting two sets of OnStartRequest/OnStopRequest.

The fix in this patch is to simply clear the mInterceptListener when we synthesized the redirect.  We know we're not actually synthesizing a body since we are following a redirect instead.

And of course, it will be nice when we can get rid of the child side intercept code because this will get easier to understand.
Attachment #8922489 - Flags: review?(bugmail)
Comment on attachment 8922489 [details] [diff] [review]
Clear the intercept listening when synthesizing a redirect in HttpChannelChild. r=asuth

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

Thank you for the very detailed explanation.
Attachment #8922489 - Flags: review?(bugmail) → review+
Pushed by bkelly@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/6f9a97d89dfd
Clear the intercept listening when synthesizing a redirect in HttpChannelChild. r=asuth
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Keywords: leave-open
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: