- From: Ben Kelly <notifications@github.com>
- Date: Sat, 07 May 2016 06:26:36 -0700
- To: slightlyoff/ServiceWorker <ServiceWorker@noreply.github.com>
- Cc:
Received on Saturday, 7 May 2016 13:29:22 UTC
Step 18.6.1 of Handle Fetch aborts the the task steps if a runtime script error occurs:
```
5) Dispatch e at activeWorker’s environment settings object’s global object.
6) For each event listener invoked:
1) If any uncaught runtime script error occurs, then:
1) Report the error for the script per the runtime script errors handling.
2) Abort these steps.
```
It then says after step 18.6:
> If task is discarded or the script has been aborted by the termination of activeWorker, set handleFetchFailed to true.
I believe previously the spec used the term "aborted" there instead of "task is discarded", but I think it applies.
if `handleFetchFailed` is true then we return a network error in step 21.
---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/slightlyoff/ServiceWorker/issues/892#issuecomment-217634819
Received on Saturday, 7 May 2016 13:29:22 UTC