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

Issue 1475433002: Expose RenderFrameHost::GetLastCommittedOrigin(). (Closed)

Created:
5 years ago by ncarter (slow)
Modified:
5 years ago
CC:
chromium-reviews, darin-cc_chromium.org, nasko+codewatch_chromium.org, jam, creis+watch_chromium.org, nasko, alexmos, robwu
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Expose RenderFrameHost::GetLastCommittedOrigin(). It is an error to call this unless the RFH is current -- similar to GetLastCommittedURL, but we actually enforce it. There are two pending CLs that will want to use this: 1413853005 and 1465533008. BUG=498580 TBR=abarth@chromium.org Committed: https://crrev.com/1466c8459a40da0077d6e62174c2fec808b9f50f Cr-Commit-Position: refs/heads/master@{#361722}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Merge. #

Patch Set 3 : format. #

Total comments: 8

Patch Set 4 : Alexmos's fixes. #

Total comments: 12

Patch Set 5 : Charlie's fixes. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+95 lines, -16 lines) Patch
M content/browser/frame_host/frame_tree_browsertest.cc View 1 2 3 4 3 chunks +68 lines, -12 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.cc View 1 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download
M content/public/browser/render_frame_host.h View 1 2 3 4 2 chunks +16 lines, -0 lines 0 comments Download
M content/test/data/frame_tree/top.html View 1 chunk +1 line, -1 line 0 comments Download
M url/origin.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M url/scheme_host_port.h View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 20 (8 generated)
ncarter (slow)
5 years ago (2015-11-23 23:33:08 UTC) #2
alexmos
https://codereview.chromium.org/1475433002/diff/1/content/browser/frame_host/frame_tree_browsertest.cc File content/browser/frame_host/frame_tree_browsertest.cc (right): https://codereview.chromium.org/1475433002/diff/1/content/browser/frame_host/frame_tree_browsertest.cc#newcode45 content/browser/frame_host/frame_tree_browsertest.cc:45: "window.domAutomationController.send(document.domain);", &origin)); Any reason to use this instead of ...
5 years ago (2015-11-24 00:05:49 UTC) #3
ncarter (slow)
https://codereview.chromium.org/1475433002/diff/1/content/browser/frame_host/frame_tree_browsertest.cc File content/browser/frame_host/frame_tree_browsertest.cc (right): https://codereview.chromium.org/1475433002/diff/1/content/browser/frame_host/frame_tree_browsertest.cc#newcode45 content/browser/frame_host/frame_tree_browsertest.cc:45: "window.domAutomationController.send(document.domain);", &origin)); On 2015/11/24 00:05:49, alexmos wrote: > Any ...
5 years ago (2015-11-24 00:35:33 UTC) #4
ncarter (slow)
Updated; PTAL
5 years ago (2015-11-24 06:04:12 UTC) #5
alexmos
Thanks, LGTM with nits below. https://codereview.chromium.org/1475433002/diff/40001/content/browser/frame_host/frame_tree_browsertest.cc File content/browser/frame_host/frame_tree_browsertest.cc (right): https://codereview.chromium.org/1475433002/diff/40001/content/browser/frame_host/frame_tree_browsertest.cc#newcode41 content/browser/frame_host/frame_tree_browsertest.cc:41: std::string GetEffectiveOriginFromRenderer(FrameTreeNode* node) { ...
5 years ago (2015-11-24 18:23:48 UTC) #6
ncarter (slow)
https://codereview.chromium.org/1475433002/diff/40001/content/browser/frame_host/frame_tree_browsertest.cc File content/browser/frame_host/frame_tree_browsertest.cc (right): https://codereview.chromium.org/1475433002/diff/40001/content/browser/frame_host/frame_tree_browsertest.cc#newcode41 content/browser/frame_host/frame_tree_browsertest.cc:41: std::string GetEffectiveOriginFromRenderer(FrameTreeNode* node) { On 2015/11/24 18:23:48, alexmos wrote: ...
5 years ago (2015-11-24 19:35:08 UTC) #7
Charlie Reis
Thanks for linking to the CLs that need it. LGTM with nits. https://codereview.chromium.org/1475433002/diff/60001/content/browser/frame_host/frame_tree_browsertest.cc File content/browser/frame_host/frame_tree_browsertest.cc ...
5 years ago (2015-11-24 21:00:43 UTC) #8
ncarter (slow)
abarth: please have a look at the url/ changes, which are comment-only https://codereview.chromium.org/1475433002/diff/60001/content/browser/frame_host/frame_tree_browsertest.cc File content/browser/frame_host/frame_tree_browsertest.cc ...
5 years ago (2015-11-24 22:07:34 UTC) #11
ncarter (slow)
TBR'ing abarth since the changes to url are trivial comment fixes.
5 years ago (2015-11-25 19:19:00 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1475433002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1475433002/80001
5 years ago (2015-11-25 19:20:38 UTC) #16
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years ago (2015-11-25 20:08:13 UTC) #18
commit-bot: I haz the power
5 years ago (2015-11-25 20:09:18 UTC) #20
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/1466c8459a40da0077d6e62174c2fec808b9f50f
Cr-Commit-Position: refs/heads/master@{#361722}

Powered by Google App Engine
This is Rietveld 408576698