WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
180959
Handle Fetch should wait for the service worker's state to become activated
https://bugs.webkit.org/show_bug.cgi?id=180959
Summary
Handle Fetch should wait for the service worker's state to become activated
Chris Dumez
Reported
2017-12-18 16:46:47 PST
Handle Fetch should wait for the service worker's state to become activated when it is currently activating. Specification: -
https://w3c.github.io/ServiceWorker/#on-fetch-request-algorithm
(Step 16)
Attachments
Patch
(11.37 KB, patch)
2017-12-18 17:24 PST
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Patch
(11.47 KB, patch)
2017-12-18 20:29 PST
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Patch
(11.68 KB, patch)
2017-12-19 11:12 PST
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Patch
(11.68 KB, patch)
2017-12-19 11:48 PST
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Patch
(11.64 KB, patch)
2017-12-19 12:12 PST
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Show Obsolete
(4)
View All
Add attachment
proposed patch, testcase, etc.
Chris Dumez
Comment 1
2017-12-18 17:24:24 PST
Created
attachment 329715
[details]
Patch
Chris Dumez
Comment 2
2017-12-18 20:29:50 PST
Created
attachment 329732
[details]
Patch
youenn fablet
Comment 3
2017-12-19 10:40:42 PST
Comment on
attachment 329732
[details]
Patch So we keep the pending fetch in storage process until service worker is active. Another option would be to send the fetch to the service worker process and wait there, but this is probably less safe?
WebKit Commit Bot
Comment 4
2017-12-19 10:42:41 PST
Comment on
attachment 329732
[details]
Patch Rejecting
attachment 329732
[details]
from commit-queue. Failed to run "['/Volumes/Data/EWS/WebKit/Tools/Scripts/webkit-patch', '--status-host=webkit-queues.webkit.org', '--bot-id=webkit-cq-01', 'apply-attachment', '--no-update', '--non-interactive', 329732, '--port=mac']" exit_code: 2 cwd: /Volumes/Data/EWS/WebKit Last 500 characters of output: 8. 1 out of 1 hunk FAILED -- saving rejects to file Source/WebKit/StorageProcess/ServiceWorker/WebSWServerConnection.cpp.rej patching file LayoutTests/imported/w3c/ChangeLog Hunk #1 succeeded at 1 with fuzz 3. patching file LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/fetch-waits-for-activate.https-expected.txt Failed to run "[u'/Volumes/Data/EWS/WebKit/Tools/Scripts/svn-apply', '--force', '--reviewer', u'Youenn Fablet']" exit_code: 1 cwd: /Volumes/Data/EWS/WebKit Full output:
http://webkit-queues.webkit.org/results/5754744
Chris Dumez
Comment 5
2017-12-19 10:45:57 PST
(In reply to youenn fablet from
comment #3
)
> Comment on
attachment 329732
[details]
> Patch > > So we keep the pending fetch in storage process until service worker is > active. > Another option would be to send the fetch to the service worker process and > wait there, but this is probably less safe?
The spec says to first wait for activated and then call runServiceWorker, which is why I put the check there.
Chris Dumez
Comment 6
2017-12-19 11:12:28 PST
Created
attachment 329777
[details]
Patch
Chris Dumez
Comment 7
2017-12-19 11:48:34 PST
Created
attachment 329781
[details]
Patch
Chris Dumez
Comment 8
2017-12-19 12:12:10 PST
Created
attachment 329789
[details]
Patch
WebKit Commit Bot
Comment 9
2017-12-19 13:22:25 PST
Comment on
attachment 329789
[details]
Patch Clearing flags on attachment: 329789 Committed
r226136
: <
https://trac.webkit.org/changeset/226136
>
WebKit Commit Bot
Comment 10
2017-12-19 13:22:27 PST
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 11
2017-12-19 13:23:37 PST
<
rdar://problem/36139197
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug