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

Issue 2323143002: Correctly set requestor origin for worker initiated requests. (Closed)

Created:
4 years, 3 months ago by Marijn Kruisselbrink
Modified:
4 years, 3 months ago
Reviewers:
Nate Chapin
CC:
chromium-reviews, michaeln, jsbell+serviceworker_chromium.org, kenjibaheux+watch_chromium.org, Nate Chapin, shimazu+serviceworker_chromium.org, serviceworker-reviews, Yoav Weiss, nhiroki, falken, loading-reviews_chromium.org, kinuko+serviceworker, gavinp+loader_chromium.org, blink-reviews, horo+watch_chromium.org, tzik, tyoshino+watch_chromium.org, Mike West
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Correctly set requestor origin for worker initiated requests. ResourceRequest.requestTorOrigin() can never be null (since it is initialized to a unique origin rather than null). Because of that the check in FrameFetchContext::populateRequestData meant that this code would never actually set the requestor origin of a request. For requests from frames the code in RenderFrameImpl::willSendRequest would then replace the origin with the correct one anyway, but no such code exists for shared/service workers. BUG=645281, 625969 Committed: https://crrev.com/65299f214fad8f609c5872bcdd5f4ea82ec29713 Cr-Commit-Position: refs/heads/master@{#417712}

Patch Set 1 #

Patch Set 2 : Fix unit tests. #

Patch Set 3 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -5 lines) Patch
M third_party/WebKit/LayoutTests/http/tests/serviceworker/foreign-fetch-basics.html View 1 chunk +10 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/foreign-fetch-worker.js View 2 chunks +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/loader/FrameFetchContext.cpp View 1 chunk +5 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/loader/FrameFetchContextTest.cpp View 1 2 2 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 22 (14 generated)
Marijn Kruisselbrink
japhet: could you review this? mkwst is probably a more appropriate reviewer, but he appears ...
4 years, 3 months ago (2016-09-08 23:14:38 UTC) #4
Nate Chapin
lgtm. Overwriting a unique SecurityOrigin looks highly suspect, but it sounds like that's what the ...
4 years, 3 months ago (2016-09-09 19:03:00 UTC) #9
Marijn Kruisselbrink
On 2016/09/09 19:03:00, Nate Chapin wrote: > lgtm. Overwriting a unique SecurityOrigin looks highly suspect, ...
4 years, 3 months ago (2016-09-09 19:07:02 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2323143002/20001
4 years, 3 months ago (2016-09-09 19:07:43 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/256733)
4 years, 3 months ago (2016-09-09 19:13:51 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2323143002/40001
4 years, 3 months ago (2016-09-09 19:32:57 UTC) #18
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 3 months ago (2016-09-09 21:11:35 UTC) #20
commit-bot: I haz the power
4 years, 3 months ago (2016-09-09 21:12:50 UTC) #22
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/65299f214fad8f609c5872bcdd5f4ea82ec29713
Cr-Commit-Position: refs/heads/master@{#417712}

Powered by Google App Engine
This is Rietveld 408576698