ServiceWorker should respect IDB and DOMCache partitioning
authoryouenn@apple.com <youenn@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 9 Mar 2018 21:47:31 +0000 (21:47 +0000)
committeryouenn@apple.com <youenn@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 9 Mar 2018 21:47:31 +0000 (21:47 +0000)
commitccfb7c84ebeccea8c28a08b17e77110bcf1b42ca
tree08237158056ef3fd56dee9093cdf3397763b6ae3
parent519c40d5b58bb432888b68b3e81eacd645c1284e
ServiceWorker should respect IDB and DOMCache partitioning
https://bugs.webkit.org/show_bug.cgi?id=183496

Reviewed by Brady Eidson.

Source/WebCore:

Test: http/wpt/service-workers/third-party-registration.html

Set the correct top origin of service worker ScriptExecutionContext.

* workers/service/context/ServiceWorkerThread.cpp:
(WebCore::ServiceWorkerThread::ServiceWorkerThread):

LayoutTests:

* http/wpt/service-workers/resources/third-party-registration-frame.html: Added.
* http/wpt/service-workers/resources/third-party-worker.js: Added.
* http/wpt/service-workers/third-party-registration-expected.txt: Added.
* http/wpt/service-workers/third-party-registration.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@229483 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/http/wpt/service-workers/resources/third-party-registration-frame.html [new file with mode: 0644]
LayoutTests/http/wpt/service-workers/resources/third-party-worker.js [new file with mode: 0644]
LayoutTests/http/wpt/service-workers/third-party-registration-expected.txt [new file with mode: 0644]
LayoutTests/http/wpt/service-workers/third-party-registration.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/workers/service/context/ServiceWorkerThread.cpp