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

Issue 2416523002: Expose the initiating origin/URL of a navigation in the Blink public API (Closed)

Created:
4 years, 2 months ago by dcheng
Modified:
3 years, 8 months ago
Reviewers:
Mike West, kuzminruslan
CC:
blink-reviews, blink-reviews-api_chromium.org, chromium-reviews, clamy, Charlie Reis, dglazkov+blink, gavinp+loader_chromium.org, Nate Chapin, Jialiu Lin, kinuko+watch, loading-reviews_chromium.org, meacer, nasko, tyoshino+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Expose a navigation's requestor Document's URL. BUG=651895

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : Trim includes/forward decls/fix names #

Total comments: 1

Patch Set 4 : Fix typo #

Total comments: 1

Patch Set 5 : Use less memory, add tests, etc. #

Total comments: 9

Patch Set 6 : Add test case, address comments #

Patch Set 7 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+125 lines, -29 lines) Patch
M third_party/WebKit/Source/core/loader/DocumentLoader.h View 1 2 3 4 5 3 chunks +10 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/loader/DocumentLoader.cpp View 1 2 3 4 3 chunks +7 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/loader/EmptyClients.h View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/loader/EmptyClients.cpp View 1 2 3 4 5 1 chunk +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/loader/FrameFetchContextTest.cpp View 1 2 3 4 5 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/loader/FrameLoader.cpp View 1 2 3 4 5 6 2 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/loader/FrameLoaderClient.h View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/webaudio/BaseAudioContextTest.cpp View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/FrameLoaderClientImpl.h View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp View 1 2 3 4 5 6 1 chunk +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/web/WebDataSourceImpl.h View 1 2 3 4 3 chunks +6 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/WebDataSourceImpl.cpp View 1 2 3 4 2 chunks +15 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebFrameTest.cpp View 1 2 3 4 5 6 1 chunk +61 lines, -0 lines 0 comments Download
M third_party/WebKit/public/web/WebDataSource.h View 1 2 3 4 2 chunks +4 lines, -1 line 0 comments Download

Messages

Total messages: 44 (29 generated)
dcheng
mkwst@, does this patch make sense to you? The motivation is that we'd like to ...
4 years, 2 months ago (2016-10-12 05:34:27 UTC) #5
Mike West
Is this different from the `requestorOrigin` we have on WebURLRequest?
4 years, 2 months ago (2016-10-12 13:43:15 UTC) #8
dcheng
On 2016/10/12 13:43:15, Mike West wrote: > Is this different from the `requestorOrigin` we have ...
4 years, 2 months ago (2016-10-12 16:10:42 UTC) #9
Mike West
On 2016/10/12 at 16:10:42, dcheng wrote: > However, requestorOrigin seems to have some (surprising to ...
4 years, 2 months ago (2016-10-13 09:56:16 UTC) #10
dcheng
On 2016/10/13 09:56:16, Mike West wrote: > On 2016/10/12 at 16:10:42, dcheng wrote: > > ...
4 years, 2 months ago (2016-10-13 17:31:01 UTC) #11
Mike West
dcheng@: We talked last week (sorry for the delay!), but I'm not sure if you're ...
4 years, 1 month ago (2016-10-24 14:01:51 UTC) #12
dcheng
On 2016/10/24 14:01:51, Mike West wrote: > dcheng@: We talked last week (sorry for the ...
4 years, 1 month ago (2016-10-24 15:17:10 UTC) #13
dcheng
OK, I updated this to just retain a pointer to the requestor document: the URL ...
4 years, 1 month ago (2016-11-12 06:02:13 UTC) #17
kuzminruslan
https://codereview.chromium.org/2416523002/diff/60001/third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp File third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp (right): https://codereview.chromium.org/2416523002/diff/60001/third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp#newcode683 third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp:683: m_webFrame->client()->didCreateDataSource(m_webFrame, ds); i am not sure, but perhaps skiped ...
4 years, 1 month ago (2016-11-12 08:51:57 UTC) #26
dcheng
On 2016/11/12 08:51:57, kuzminruslan wrote: > https://codereview.chromium.org/2416523002/diff/60001/third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp > File third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp (right): > > https://codereview.chromium.org/2416523002/diff/60001/third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp#newcode683 > ...
4 years, 1 month ago (2016-11-12 18:14:56 UTC) #27
Mike West
This looks pretty reasonable, thanks for taking a second pass after our conversation. Would you ...
4 years, 1 month ago (2016-11-14 13:58:30 UTC) #28
dcheng
PTAL https://codereview.chromium.org/2416523002/diff/80001/third_party/WebKit/Source/core/loader/DocumentLoader.cpp File third_party/WebKit/Source/core/loader/DocumentLoader.cpp (right): https://codereview.chromium.org/2416523002/diff/80001/third_party/WebKit/Source/core/loader/DocumentLoader.cpp#newcode649 third_party/WebKit/Source/core/loader/DocumentLoader.cpp:649: // TODO(dcheng): This doesn't really belong here. I'm ...
4 years ago (2016-11-23 08:32:59 UTC) #31
Mike West
LGTM % test questions. https://codereview.chromium.org/2416523002/diff/80001/third_party/WebKit/Source/core/loader/DocumentLoader.h File third_party/WebKit/Source/core/loader/DocumentLoader.h (right): https://codereview.chromium.org/2416523002/diff/80001/third_party/WebKit/Source/core/loader/DocumentLoader.h#newcode76 third_party/WebKit/Source/core/loader/DocumentLoader.h:76: Document* requestorDocument = nullptr) { ...
4 years ago (2016-11-23 11:11:20 UTC) #34
dcheng
https://codereview.chromium.org/2416523002/diff/80001/third_party/WebKit/Source/core/loader/DocumentLoader.h File third_party/WebKit/Source/core/loader/DocumentLoader.h (right): https://codereview.chromium.org/2416523002/diff/80001/third_party/WebKit/Source/core/loader/DocumentLoader.h#newcode76 third_party/WebKit/Source/core/loader/DocumentLoader.h:76: Document* requestorDocument = nullptr) { On 2016/11/23 11:11:20, Mike ...
4 years ago (2016-11-23 14:41:44 UTC) #37
Mike West
4 years ago (2016-11-28 07:12:33 UTC) #44
Ok. LGTM. I trust that you'll come up with a good plan for the future. :)

Powered by Google App Engine
This is Rietveld 408576698