Bug 178761

Summary: ServiceWorkerClientFetch should return an error that is not null in case of failure
Product: WebKit Reporter: youenn fablet <youennf>
Component: WebCore Misc.Assignee: youenn fablet <youennf>
Status: RESOLVED FIXED    
Severity: Normal CC: achristensen, beidson, cdumez, commit-queue, ggaren, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch none

Description youenn fablet 2017-10-24 16:26:21 PDT
ServiceWorkerClientFetch should return an error that is not null in case of failure
Comment 1 youenn fablet 2017-10-24 16:35:10 PDT
Created attachment 324750 [details]
Patch
Comment 2 youenn fablet 2017-10-24 16:47:52 PDT
Created attachment 324756 [details]
Patch
Comment 3 Geoffrey Garen 2017-10-24 16:49:12 PDT
Comment on attachment 324756 [details]
Patch

r=me
Comment 4 Geoffrey Garen 2017-10-24 16:49:28 PDT
Can we add a test for this now that we have hello world?
Comment 5 youenn fablet 2017-10-24 17:12:43 PDT
(In reply to Geoffrey Garen from comment #4)
> Can we add a test for this now that we have hello world?

Thanks for the review.
The change is covered by basic-registration.html.
The change to make use of ResourceError::Type::General makes basic-registration.html to fail. By fixing WorkerScriptLoader to not use service worker, we are back to the usual way.
Comment 6 WebKit Commit Bot 2017-10-24 17:47:30 PDT
Comment on attachment 324756 [details]
Patch

Clearing flags on attachment: 324756

Committed r223944: <https://trac.webkit.org/changeset/223944>
Comment 7 WebKit Commit Bot 2017-10-24 17:47:32 PDT
All reviewed patches have been landed.  Closing bug.
Comment 8 Radar WebKit Bug Importer 2017-11-15 12:50:04 PST
<rdar://problem/35568238>