Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(175)

Issue 1760523004: CORS-RFC1918: Teach Workers about address spaces. (Closed)

Created:
4 years, 9 months ago by Mike West
Modified:
4 years, 9 months ago
Reviewers:
falken, kinuko, philipj_slow
CC:
blink-reviews, blink-reviews-dom_chromium.org, blink-worker-reviews_chromium.org, chromium-reviews, dglazkov+blink, eae+blinkwatch, falken, gavinp+loader_chromium.org, horo+watch_chromium.org, Nate Chapin, jsbell+serviceworker_chromium.org, kinuko+worker_chromium.org, kinuko+serviceworker, loading-reviews_chromium.org, michaeln, mkwst+watchlist-csp_chromium.org, nhiroki, rwlbuis, serviceworker-reviews, sof, tyoshino+watch_chromium.org, tzik, Yoav Weiss
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

CORS-RFC1918: Teach Workers about address spaces. https://codereview.chromium.org/1749153002 taught Documents about their address spaces, but neglected Workers. Sorry, Workers! This patch pipes address spaces through to WorkerGlobalState as follows: 1. ServiceWorkers and SharedWorkers get their own address state from the Response which was used to create them. 2. DedicatedWorkers and Worklets get their address state from the Document which created them. BUG=591052 Committed: https://crrev.com/0cff8b37a25ec1c28aa0a388bd54522f2a47a6a2 Cr-Commit-Position: refs/heads/master@{#379292}

Patch Set 1 #

Patch Set 2 : Oops. #

Total comments: 5

Patch Set 3 : layout tests #

Total comments: 1

Patch Set 4 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -19 lines) Patch
A + third_party/WebKit/LayoutTests/http/tests/security/cors-rfc1918/addressspace-sharedworker-basic.html View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/security/cors-rfc1918/addressspace-worker-basic.html View 1 2 3 1 chunk +0 lines, -2 lines 0 comments Download
D third_party/WebKit/LayoutTests/http/tests/security/cors-rfc1918/addressspace-worker-basic-expected.txt View 1 2 3 1 chunk +0 lines, -7 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/security/cors-rfc1918/resources/addressspace-test.js View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/security/cors-rfc1918/resources/post-addressspace-from-sharedworker.html View 1 2 1 chunk +8 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/security/cors-rfc1918/resources/post-addressspace-to-owner.js View 1 2 3 1 chunk +12 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/workers/DedicatedWorkerGlobalScope.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/workers/SharedWorkerGlobalScope.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/workers/WorkerMessagingProxy.cpp View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/workers/WorkerScriptLoader.h View 2 chunks +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/workers/WorkerScriptLoader.cpp View 3 chunks +10 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/workers/WorkerThreadStartupData.h View 4 chunks +7 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/workers/WorkerThreadStartupData.cpp View 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/workers/WorkerThreadTest.cpp View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/compositorworker/CompositorWorkerGlobalScope.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/compositorworker/CompositorWorkerThreadTest.cpp View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerGlobalScope.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp View 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp View 1 2 1 chunk +2 lines, -1 line 0 comments Download

Depends on Patchset:

Messages

Total messages: 21 (9 generated)
Mike West
Hi Kinuko! Can you take a look at this patch? In particular, I'd love some ...
4 years, 9 months ago (2016-03-02 15:45:56 UTC) #2
kinuko
The code change looking good mod some nits. Reg: tests we don't have a very ...
4 years, 9 months ago (2016-03-03 02:46:34 UTC) #3
Mike West
On 2016/03/03 at 02:46:34, kinuko wrote: > The code change looking good mod some nits. ...
4 years, 9 months ago (2016-03-03 05:24:27 UTC) #4
kinuko
> I guess I can do that with layout tests if I add some accessors ...
4 years, 9 months ago (2016-03-03 08:15:50 UTC) #6
Mike West
I've added some layout tests and pulled out some of the refactoring which makes them ...
4 years, 9 months ago (2016-03-03 12:14:04 UTC) #7
Mike West
The bots are red because of an exciting patch failure. Rebase before uploading, kids! I'll ...
4 years, 9 months ago (2016-03-04 05:52:32 UTC) #9
kinuko
Thanks for adding layout tests, the changes lgtm once bots become happy https://codereview.chromium.org/1760523004/diff/40001/third_party/WebKit/LayoutTests/http/tests/security/cors-rfc1918/addressspace-sharedworker-basic.html File third_party/WebKit/LayoutTests/http/tests/security/cors-rfc1918/addressspace-sharedworker-basic.html ...
4 years, 9 months ago (2016-03-04 09:01:12 UTC) #10
philipj_slow
Took a quick look, trust the other reviewers to handle this :)
4 years, 9 months ago (2016-03-04 10:28:31 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1760523004/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1760523004/60001
4 years, 9 months ago (2016-03-04 14:30:25 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1760523004/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1760523004/60001
4 years, 9 months ago (2016-03-04 14:38:15 UTC) #18
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 9 months ago (2016-03-04 15:55:32 UTC) #19
commit-bot: I haz the power
4 years, 9 months ago (2016-03-04 15:57:22 UTC) #21
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/0cff8b37a25ec1c28aa0a388bd54522f2a47a6a2
Cr-Commit-Position: refs/heads/master@{#379292}

Powered by Google App Engine
This is Rietveld 408576698