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

Issue 1749153002: CORS-RFC1918: Teach ResourceRequest about "external" requests (Closed)

Created:
4 years, 9 months ago by Mike West
Modified:
4 years, 9 months ago
CC:
blink-reviews, blink-reviews-api_chromium.org, blink-reviews-dom_chromium.org, blink-reviews-events_chromium.org, blink-worker-reviews_chromium.org, chromium-reviews, dglazkov+blink, eae+blinkwatch, falken, gavinp+loader_chromium.org, horo+watch_chromium.org, Nate Chapin, kinuko+fileapi, kinuko+worker_chromium.org, kinuko+watch, loading-reviews_chromium.org, nhiroki, rwlbuis, 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 ResourceRequest about "external" requests As defined in https://mikewest.github.io/cors-rfc1918/#external-request. This patch converts the "reserved IP range" flag on 'ResourceRequest' into an "external request" flag, and ensures that the flag is set correctly for requests that run through 'ThreadableLoader' and 'ResourceFetcher'. The new flag is locked to a new RuntimeEnabledFeature, which is enabled in test only. If that feature isn't enabled, no request is marked as being external. BUG=591052 Committed: https://crrev.com/dc5e487ba33a18f6e0362e072af8c5a39552dffa Cr-Commit-Position: refs/heads/master@{#378730}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Jochen's feedback. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+213 lines, -28 lines) Patch
M third_party/WebKit/Source/core/dom/Document.cpp View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/dom/SecurityContext.h View 1 2 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/dom/SecurityContext.cpp View 1 1 chunk +8 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/fileapi/FileReaderLoader.cpp View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/loader/FrameFetchContext.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/loader/FrameFetchContextTest.cpp View 1 1 chunk +143 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/loader/MixedContentChecker.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/page/EventSource.cpp View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/workers/WorkerScriptLoader.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/workers/WorkerScriptLoader.cpp View 1 3 chunks +4 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.cpp View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/fetch/FetchBlobDataConsumerHandle.cpp View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/fetch/FetchManager.cpp View 1 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/exported/WebURLRequest.cpp View 1 chunk +2 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/platform/network/ResourceRequest.h View 1 3 chunks +5 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/platform/network/ResourceRequest.cpp View 1 5 chunks +27 lines, -3 lines 0 comments Download
M third_party/WebKit/public/platform/WebURLRequest.h View 1 2 chunks +10 lines, -4 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 11 (4 generated)
Mike West
Mind taking a look, Jochen?
4 years, 9 months ago (2016-03-01 14:59:08 UTC) #3
jochen (gone - plz use gerrit)
https://codereview.chromium.org/1749153002/diff/1/third_party/WebKit/Source/platform/network/ResourceRequest.cpp File third_party/WebKit/Source/platform/network/ResourceRequest.cpp (right): https://codereview.chromium.org/1749153002/diff/1/third_party/WebKit/Source/platform/network/ResourceRequest.cpp#newcode451 third_party/WebKit/Source/platform/network/ResourceRequest.cpp:451: m_isExternalRequest = false; should this default to true if ...
4 years, 9 months ago (2016-03-01 15:42:29 UTC) #4
Mike West
https://codereview.chromium.org/1749153002/diff/1/third_party/WebKit/Source/platform/network/ResourceRequest.cpp File third_party/WebKit/Source/platform/network/ResourceRequest.cpp (right): https://codereview.chromium.org/1749153002/diff/1/third_party/WebKit/Source/platform/network/ResourceRequest.cpp#newcode451 third_party/WebKit/Source/platform/network/ResourceRequest.cpp:451: m_isExternalRequest = false; On 2016/03/01 at 15:42:29, jochen wrote: ...
4 years, 9 months ago (2016-03-02 08:50:03 UTC) #5
jochen (gone - plz use gerrit)
lgtm
4 years, 9 months ago (2016-03-02 11:02:26 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1749153002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1749153002/20001
4 years, 9 months ago (2016-03-02 12:01:36 UTC) #8
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 9 months ago (2016-03-02 12:07:46 UTC) #9
commit-bot: I haz the power
4 years, 9 months ago (2016-03-02 12:09:12 UTC) #11
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/dc5e487ba33a18f6e0362e072af8c5a39552dffa
Cr-Commit-Position: refs/heads/master@{#378730}

Powered by Google App Engine
This is Rietveld 408576698