Bug 183600

Summary: Have one service worker process per security origin
Product: WebKit Reporter: Chris Dumez <cdumez>
Component: Service WorkersAssignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: beidson, commit-queue, ews-watchlist, rniwa, webkit-bug-importer, youennf
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 183624, 183626    
Bug Blocks:    
Attachments:
Description Flags
WIP patch
ews-watchlist: commit-queue-
Archive of layout-test-results from ews106 for mac-sierra-wk2
none
WIP patch
none
WIP patch
none
WIP patch
none
WIP patch
none
Patch
none
Patch
none
Patch
none
Patch
none
Patch none

Description Chris Dumez 2018-03-13 10:54:32 PDT
Have one service worker process per security origin for security reasons.
Comment 1 Chris Dumez 2018-03-13 10:54:48 PDT
<rdar://problem/35280128>
Comment 2 Chris Dumez 2018-03-14 12:15:59 PDT
Created attachment 335784 [details]
WIP patch
Comment 3 EWS Watchlist 2018-03-14 12:18:41 PDT
Attachment 335784 [details] did not pass style-queue:


ERROR: Source/WebKit/UIProcess/ServiceWorkerProcessProxy.cpp:54:  Code inside a namespace should not be indented.  [whitespace/indent] [4]
Total errors found: 1 in 24 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 4 EWS Watchlist 2018-03-14 13:27:49 PDT
Comment on attachment 335784 [details]
WIP patch

Attachment 335784 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-queues.webkit.org/results/6953741

New failing tests:
http/tests/workers/service/postmessage-after-sw-process-crash.https.html
Comment 5 EWS Watchlist 2018-03-14 13:27:51 PDT
Created attachment 335792 [details]
Archive of layout-test-results from ews106 for mac-sierra-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: ews106  Port: mac-sierra-wk2  Platform: Mac OS X 10.12.6
Comment 6 Chris Dumez 2018-03-14 16:16:26 PDT
Created attachment 335806 [details]
WIP patch
Comment 7 EWS Watchlist 2018-03-14 16:17:33 PDT
Attachment 335806 [details] did not pass style-queue:


ERROR: Source/WebKit/UIProcess/ServiceWorkerProcessProxy.cpp:54:  Code inside a namespace should not be indented.  [whitespace/indent] [4]
Total errors found: 1 in 24 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 8 Chris Dumez 2018-03-14 16:39:05 PDT
Created attachment 335808 [details]
WIP patch
Comment 9 EWS Watchlist 2018-03-14 16:41:57 PDT
Attachment 335808 [details] did not pass style-queue:


ERROR: Source/WebKit/UIProcess/ServiceWorkerProcessProxy.cpp:54:  Code inside a namespace should not be indented.  [whitespace/indent] [4]
Total errors found: 1 in 24 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 10 Chris Dumez 2018-03-14 16:52:41 PDT
Created attachment 335810 [details]
WIP patch
Comment 11 EWS Watchlist 2018-03-14 16:56:31 PDT
Attachment 335810 [details] did not pass style-queue:


ERROR: Source/WebKit/UIProcess/ServiceWorkerProcessProxy.cpp:54:  Code inside a namespace should not be indented.  [whitespace/indent] [4]
Total errors found: 1 in 24 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 12 Chris Dumez 2018-03-15 13:34:28 PDT
Created attachment 335876 [details]
WIP patch
Comment 13 EWS Watchlist 2018-03-15 13:35:53 PDT
Attachment 335876 [details] did not pass style-queue:


ERROR: Source/WebKit/UIProcess/ServiceWorkerProcessProxy.cpp:54:  Code inside a namespace should not be indented.  [whitespace/indent] [4]
Total errors found: 1 in 25 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 14 Chris Dumez 2018-03-16 08:55:54 PDT
Created attachment 335940 [details]
Patch
Comment 15 EWS Watchlist 2018-03-16 08:56:59 PDT
Attachment 335940 [details] did not pass style-queue:


ERROR: Source/WebKit/UIProcess/ServiceWorkerProcessProxy.cpp:54:  Code inside a namespace should not be indented.  [whitespace/indent] [4]
Total errors found: 1 in 27 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 16 Chris Dumez 2018-03-16 09:09:14 PDT
Created attachment 335941 [details]
Patch
Comment 17 EWS Watchlist 2018-03-16 09:10:14 PDT
Attachment 335941 [details] did not pass style-queue:


ERROR: Source/WebKit/UIProcess/ServiceWorkerProcessProxy.cpp:54:  Code inside a namespace should not be indented.  [whitespace/indent] [4]
Total errors found: 1 in 27 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 18 Chris Dumez 2018-03-16 11:57:29 PDT
Created attachment 335958 [details]
Patch
Comment 19 EWS Watchlist 2018-03-16 12:00:20 PDT
Attachment 335958 [details] did not pass style-queue:


ERROR: Source/WebKit/UIProcess/ServiceWorkerProcessProxy.cpp:54:  Code inside a namespace should not be indented.  [whitespace/indent] [4]
Total errors found: 1 in 27 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 20 Chris Dumez 2018-03-16 15:44:47 PDT
Patch is ready for review.
Comment 21 Brady Eidson 2018-03-19 11:31:47 PDT
Comment on attachment 335958 [details]
Patch

I think we should be able to API test this?
Comment 22 Chris Dumez 2018-03-19 12:33:33 PDT
(In reply to Brady Eidson from comment #21)
> Comment on attachment 335958 [details]
> Patch
> 
> I think we should be able to API test this?

As discussed offline, you are probably right and I'll look into adding such test shortly.
Comment 23 Chris Dumez 2018-03-19 14:01:30 PDT
Created attachment 336074 [details]
Patch
Comment 24 Chris Dumez 2018-03-19 14:02:26 PDT
Comment on attachment 336074 [details]
Patch

Now with an API test.
Comment 25 EWS Watchlist 2018-03-19 14:03:10 PDT
Attachment 336074 [details] did not pass style-queue:


ERROR: Source/WebKit/UIProcess/ServiceWorkerProcessProxy.cpp:54:  Code inside a namespace should not be indented.  [whitespace/indent] [4]
Total errors found: 1 in 30 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 26 Chris Dumez 2018-03-19 14:30:07 PDT
Created attachment 336075 [details]
Patch
Comment 27 EWS Watchlist 2018-03-19 14:32:42 PDT
Attachment 336075 [details] did not pass style-queue:


ERROR: Source/WebKit/UIProcess/ServiceWorkerProcessProxy.cpp:54:  Code inside a namespace should not be indented.  [whitespace/indent] [4]
Total errors found: 1 in 30 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 28 WebKit Commit Bot 2018-03-19 19:31:52 PDT
Comment on attachment 336075 [details]
Patch

Clearing flags on attachment: 336075

Committed r229735: <https://trac.webkit.org/changeset/229735>
Comment 29 WebKit Commit Bot 2018-03-19 19:31:54 PDT
All reviewed patches have been landed.  Closing bug.