WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
178926
Plumbing for handling Service Worker scripts failing to evaluate
https://bugs.webkit.org/show_bug.cgi?id=178926
Summary
Plumbing for handling Service Worker scripts failing to evaluate
Brady Eidson
Reported
2017-10-27 01:13:50 PDT
Reject SW registrations where the script fails to evaluate
Attachments
WIP
(26.91 KB, patch)
2017-10-27 01:20 PDT
,
Brady Eidson
buildbot
: commit-queue-
Details
Formatted Diff
Diff
Archive of layout-test-results from ews102 for mac-elcapitan
(1005.51 KB, application/zip)
2017-10-27 02:21 PDT
,
Build Bot
no flags
Details
Archive of layout-test-results from ews115 for mac-elcapitan
(1.79 MB, application/zip)
2017-10-27 02:41 PDT
,
Build Bot
no flags
Details
Archive of layout-test-results from ews121 for ios-simulator-wk2
(25.10 MB, application/zip)
2017-10-27 03:10 PDT
,
Build Bot
no flags
Details
Archive of layout-test-results from ews104 for mac-elcapitan-wk2
(1.86 MB, application/zip)
2017-10-27 04:32 PDT
,
Build Bot
no flags
Details
Another EWS run
(27.14 KB, patch)
2017-10-27 09:59 PDT
,
Brady Eidson
no flags
Details
Formatted Diff
Diff
For EWS
(27.95 KB, patch)
2017-10-27 13:27 PDT
,
Brady Eidson
no flags
Details
Formatted Diff
Diff
Patch
(32.73 KB, patch)
2017-11-01 13:28 PDT
,
Brady Eidson
no flags
Details
Formatted Diff
Diff
Patch
(32.62 KB, patch)
2017-11-01 13:55 PDT
,
Brady Eidson
no flags
Details
Formatted Diff
Diff
Show Obsolete
(8)
View All
Add attachment
proposed patch, testcase, etc.
Brady Eidson
Comment 1
2017-10-27 01:20:30 PDT
Created
attachment 325136
[details]
WIP Quick EWS run to verify no change in current tested behavior while I work on test for the new behavior
Build Bot
Comment 2
2017-10-27 02:21:20 PDT
Comment on
attachment 325136
[details]
WIP
Attachment 325136
[details]
did not pass mac-ews (mac): Output:
http://webkit-queues.webkit.org/results/5010023
New failing tests: fast/workers/worker-script-error.html http/tests/workers/worker-importScriptsOnError.html
Build Bot
Comment 3
2017-10-27 02:21:21 PDT
Created
attachment 325143
[details]
Archive of layout-test-results from ews102 for mac-elcapitan The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews102 Port: mac-elcapitan Platform: Mac OS X 10.11.6
Build Bot
Comment 4
2017-10-27 02:41:30 PDT
Comment on
attachment 325136
[details]
WIP
Attachment 325136
[details]
did not pass mac-debug-ews (mac): Output:
http://webkit-queues.webkit.org/results/5010058
New failing tests: fast/workers/worker-script-error.html http/tests/workers/worker-importScriptsOnError.html
Build Bot
Comment 5
2017-10-27 02:41:31 PDT
Created
attachment 325145
[details]
Archive of layout-test-results from ews115 for mac-elcapitan The attached test failures were seen while running run-webkit-tests on the mac-debug-ews. Bot: ews115 Port: mac-elcapitan Platform: Mac OS X 10.11.6
Build Bot
Comment 6
2017-10-27 03:10:11 PDT
Comment on
attachment 325136
[details]
WIP
Attachment 325136
[details]
did not pass ios-sim-ews (ios-simulator-wk2): Output:
http://webkit-queues.webkit.org/results/5010121
New failing tests: fast/workers/worker-script-error.html http/tests/workers/worker-importScriptsOnError.html
Build Bot
Comment 7
2017-10-27 03:10:13 PDT
Created
attachment 325147
[details]
Archive of layout-test-results from ews121 for ios-simulator-wk2 The attached test failures were seen while running run-webkit-tests on the ios-sim-ews. Bot: ews121 Port: ios-simulator-wk2 Platform: Mac OS X 10.12.6
Build Bot
Comment 8
2017-10-27 04:32:29 PDT
Comment on
attachment 325136
[details]
WIP
Attachment 325136
[details]
did not pass mac-wk2-ews (mac-wk2): Output:
http://webkit-queues.webkit.org/results/5010562
New failing tests: fast/workers/worker-script-error.html http/tests/workers/worker-importScriptsOnError.html
Build Bot
Comment 9
2017-10-27 04:32:30 PDT
Created
attachment 325148
[details]
Archive of layout-test-results from ews104 for mac-elcapitan-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews104 Port: mac-elcapitan-wk2 Platform: Mac OS X 10.11.6
Brady Eidson
Comment 10
2017-10-27 09:50:19 PDT
Subtle mistake! New patch incoming.
Brady Eidson
Comment 11
2017-10-27 09:59:55 PDT
Created
attachment 325170
[details]
Another EWS run
Chris Dumez
Comment 12
2017-10-27 10:12:37 PDT
(In reply to Brady Eidson from
comment #11
)
> Created
attachment 325170
[details]
> Another EWS run
Fails to apply. Might be because of me, sorry.
Brady Eidson
Comment 13
2017-10-27 13:27:09 PDT
Created
attachment 325189
[details]
For EWS
Build Bot
Comment 14
2017-10-27 13:31:34 PDT
Attachment 325189
[details]
did not pass style-queue: ERROR: Source/WebCore/workers/service/context/SWContextManager.h:47: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] Total errors found: 1 in 17 files If any of these errors are false positives, please file a bug against check-webkit-style.
Brady Eidson
Comment 15
2017-10-27 13:41:12 PDT
(In reply to Chris Dumez from
comment #12
)
> (In reply to Brady Eidson from
comment #11
) > > Created
attachment 325170
[details]
> > Another EWS run > > Fails to apply. Might be because of me, sorry.
YUP. That's fine.
Brady Eidson
Comment 16
2017-10-27 15:46:16 PDT
Going to back burner this, because it's actually not right (We just re-read the Install algorithm and found some out of orderness) It will be needed soon, though.
Brady Eidson
Comment 17
2017-11-01 09:43:47 PDT
Rename: Handling SW scripts failing to evaluate
Brady Eidson
Comment 18
2017-11-01 13:28:44 PDT
Created
attachment 325623
[details]
Patch
Chris Dumez
Comment 19
2017-11-01 13:48:06 PDT
Comment on
attachment 325623
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=325623&action=review
r=me assuming the bots are happy.
> Source/WebCore/workers/WorkerThread.cpp:190 > + if (m_hasEvaluateCallback) {
This is just to avoid a dispatch? If so, I am personally not sure it is worth an extra member. We could do inside the lambda: if (evaluateCallback) evaluateCallback(message);
Brady Eidson
Comment 20
2017-11-01 13:55:26 PDT
Created
attachment 325628
[details]
Patch
WebKit Commit Bot
Comment 21
2017-11-01 14:23:55 PDT
Comment on
attachment 325628
[details]
Patch Clearing flags on attachment: 325628 Committed
r224295
: <
https://trac.webkit.org/changeset/224295
>
WebKit Commit Bot
Comment 22
2017-11-01 14:23:57 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 23
2017-11-15 12:43:37 PST
<
rdar://problem/35568025
>
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