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

Issue 1844413006: Support ReferrerPolicy in Fetch API (Closed)

Created:
4 years, 8 months ago by yhirano
Modified:
4 years, 7 months ago
CC:
blink-reviews, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@update-referrer-policy
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Support ReferrerPolicy in Fetch API This CL consists of the following: - Add Request.referrerPolicy property. - Enable referrerPolicy setting in the Request construction. - Pass the referrer policy as part of a request from the page to the service worker. Intent to Ship: https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/7GYNDnQHRCs BUG=532385 Committed: https://crrev.com/a8e98a61a6144db6a2b45baaff9eeb8930f0296f Cr-Commit-Position: refs/heads/master@{#389753}

Patch Set 1 : #

Total comments: 4

Patch Set 2 : #

Total comments: 2

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+495 lines, -92 lines) Patch
M third_party/WebKit/LayoutTests/http/tests/fetch/referrer/no-referrer-document.html View 1 2 3 1 chunk +42 lines, -9 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/fetch/referrer/origin-only-document.html View 1 2 3 1 chunk +42 lines, -9 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/fetch/referrer/origin-when-cross-origin-document.html View 1 2 3 1 chunk +42 lines, -9 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/fetch/referrer/resources/echo-referrer.js View 1 chunk +8 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/fetch/referrer/resources/origin-when-cross-origin-dedicated-worker-js.php View 1 2 3 1 chunk +47 lines, -11 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/fetch/referrer/resources/origin-when-cross-origin-serviceworker-from-document.html View 1 2 3 2 chunks +44 lines, -12 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/fetch/referrer/resources/serviceworker-echo-referrer-from-default-document.html View 1 2 3 1 chunk +63 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/fetch/referrer/resources/serviceworker-from-origin-only-document.html View 1 2 3 2 chunks +44 lines, -12 lines 0 comments Download
A + third_party/WebKit/LayoutTests/http/tests/fetch/referrer/serviceworker-echo-referrer-from-default-document.html View 1 chunk +3 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/fetch/resources/fetch-test-helpers.js View 1 chunk +10 lines, -8 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/fetch/script-tests/referrer.js View 1 2 3 1 chunk +45 lines, -14 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/fetch/script-tests/request.js View 1 2 3 3 chunks +34 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/serviceworker/webexposed/global-interface-listing-service-worker-expected.txt View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/virtual/stable/http/tests/serviceworker/webexposed/global-interface-listing-service-worker-expected.txt View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/virtual/stable/webexposed/global-interface-listing-dedicated-worker-expected.txt View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/virtual/stable/webexposed/global-interface-listing-expected.txt View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/virtual/stable/webexposed/global-interface-listing-shared-worker-expected.txt View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-dedicated-worker-expected.txt View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-expected.txt View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-shared-worker-expected.txt View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/fetch/FetchRequestData.cpp View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/fetch/Request.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/fetch/Request.cpp View 1 2 3 4 5 6 4 chunks +27 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/modules/fetch/Request.idl View 1 2 3 4 5 6 2 chunks +9 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/fetch/RequestInit.cpp View 1 2 3 4 5 3 chunks +24 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/fetch/RequestTest.cpp View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 36 (17 generated)
yhirano
4 years, 8 months ago (2016-04-15 04:17:23 UTC) #13
jochen (gone - plz use gerrit)
+mkwst since it's his experiment https://codereview.chromium.org/1844413006/diff/190001/third_party/WebKit/Source/modules/fetch/Request.cpp File third_party/WebKit/Source/modules/fetch/Request.cpp (right): https://codereview.chromium.org/1844413006/diff/190001/third_party/WebKit/Source/modules/fetch/Request.cpp#newcode553 third_party/WebKit/Source/modules/fetch/Request.cpp:553: return "no-referrer-when-downgrade"; hum, what ...
4 years, 8 months ago (2016-04-15 12:04:19 UTC) #15
yhirano
https://codereview.chromium.org/1844413006/diff/190001/third_party/WebKit/Source/modules/fetch/Request.cpp File third_party/WebKit/Source/modules/fetch/Request.cpp (right): https://codereview.chromium.org/1844413006/diff/190001/third_party/WebKit/Source/modules/fetch/Request.cpp#newcode553 third_party/WebKit/Source/modules/fetch/Request.cpp:553: return "no-referrer-when-downgrade"; On 2016/04/15 12:04:19, jochen wrote: > hum, ...
4 years, 8 months ago (2016-04-18 08:43:28 UTC) #16
jochen (gone - plz use gerrit)
that looks like a bug in the fetch spec then. The referrer policy only defines ...
4 years, 8 months ago (2016-04-18 08:46:02 UTC) #17
estark
https://codereview.chromium.org/1844413006/diff/210001/third_party/WebKit/Source/modules/fetch/Request.idl File third_party/WebKit/Source/modules/fetch/Request.idl (right): https://codereview.chromium.org/1844413006/diff/210001/third_party/WebKit/Source/modules/fetch/Request.idl#newcode25 third_party/WebKit/Source/modules/fetch/Request.idl:25: "unsafe-url" Does this need to include the newly added ...
4 years, 8 months ago (2016-04-18 09:21:27 UTC) #18
yhirano
On 2016/04/18 08:46:02, jochen wrote: > that looks like a bug in the fetch spec ...
4 years, 8 months ago (2016-04-18 09:31:03 UTC) #19
yhirano
https://codereview.chromium.org/1844413006/diff/210001/third_party/WebKit/Source/modules/fetch/Request.idl File third_party/WebKit/Source/modules/fetch/Request.idl (right): https://codereview.chromium.org/1844413006/diff/210001/third_party/WebKit/Source/modules/fetch/Request.idl#newcode25 third_party/WebKit/Source/modules/fetch/Request.idl:25: "unsafe-url" On 2016/04/18 09:21:27, estark wrote: > Does this ...
4 years, 8 months ago (2016-04-19 14:24:10 UTC) #20
yhirano
s/origin-only/origin/g done. PTAL.
4 years, 8 months ago (2016-04-20 06:30:14 UTC) #21
jochen (gone - plz use gerrit)
On 2016/04/19 at 14:24:10, yhirano wrote: > https://codereview.chromium.org/1844413006/diff/210001/third_party/WebKit/Source/modules/fetch/Request.idl > File third_party/WebKit/Source/modules/fetch/Request.idl (right): > > https://codereview.chromium.org/1844413006/diff/210001/third_party/WebKit/Source/modules/fetch/Request.idl#newcode25 ...
4 years, 8 months ago (2016-04-20 14:20:48 UTC) #22
yhirano
On 2016/04/20 14:20:48, jochen wrote: > On 2016/04/19 at 14:24:10, yhirano wrote: > > > ...
4 years, 8 months ago (2016-04-21 01:57:40 UTC) #23
jochen (gone - plz use gerrit)
lgtm
4 years, 8 months ago (2016-04-21 04:02:53 UTC) #24
yhirano
estark@, mkwst@, do you have any comments?
4 years, 8 months ago (2016-04-25 06:21:34 UTC) #25
estark
None from me, lgtm
4 years, 7 months ago (2016-04-25 22:49:52 UTC) #26
estark
None from me, lgtm
4 years, 7 months ago (2016-04-25 22:49:53 UTC) #27
Mike West
lgtm, though you don't need it. :)
4 years, 7 months ago (2016-04-26 07:54:57 UTC) #28
yhirano
Thank you.
4 years, 7 months ago (2016-04-26 11:04:17 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1844413006/310001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1844413006/310001
4 years, 7 months ago (2016-04-26 11:04:30 UTC) #32
commit-bot: I haz the power
Committed patchset #7 (id:310001)
4 years, 7 months ago (2016-04-26 12:23:01 UTC) #34
commit-bot: I haz the power
4 years, 7 months ago (2016-04-26 12:24:30 UTC) #36
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/a8e98a61a6144db6a2b45baaff9eeb8930f0296f
Cr-Commit-Position: refs/heads/master@{#389753}

Powered by Google App Engine
This is Rietveld 408576698