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

Issue 799923006: Make canNavigate() OOPI-friendly (Closed)

Created:
6 years ago by Nate Chapin
Modified:
5 years, 11 months ago
Reviewers:
dcheng
CC:
blink-reviews, blink-reviews-dom_chromium.org, blink-reviews-html_chromium.org, dglazkov+blink, eae+blinkwatch, gavinp+loader_chromium.org, rwlbuis, sof, tyoshino+watch_chromium.org
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Make canNavigate() OOPI-friendly * Move SandboxFlags from ExecutionContext to SecurityContext (SandboxFlags aren't propagated for RemoteFrames, but this puts the state in a place where RemoteFrames could access it when it is plumbed) * Teach HTMLFrameOwnerElement about its Document's SandboxFlags and don't make FrameLoader check both objects to generate this Frame's SandboxFlags. * Now that SandboxFlags are in a general location, move canNavigate from Document to Frame * Now that canNavigate() can handle RemoteFrames, move findFrameForNavigation from FrameLoader to Frame BUG= Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=188097

Patch Set 1 #

Patch Set 2 : #

Total comments: 18

Patch Set 3 : Address dcheng's comments #

Total comments: 10

Patch Set 4 : #

Total comments: 2

Patch Set 5 : Null-check in History.cpp #

Unified diffs Side-by-side diffs Delta from patch set Stats (+175 lines, -177 lines) Patch
M Source/core/dom/Document.h View 1 2 1 chunk +0 lines, -3 lines 0 comments Download
M Source/core/dom/Document.cpp View 1 2 3 4 2 chunks +0 lines, -115 lines 0 comments Download
M Source/core/dom/ExecutionContext.h View 1 2 3 4 chunks +0 lines, -8 lines 0 comments Download
M Source/core/dom/ExecutionContext.cpp View 1 2 2 chunks +1 line, -13 lines 0 comments Download
M Source/core/dom/RemoteSecurityContext.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M Source/core/dom/SecurityContext.h View 3 chunks +8 lines, -0 lines 0 comments Download
M Source/core/dom/SecurityContext.cpp View 1 2 3 2 chunks +11 lines, -0 lines 0 comments Download
M Source/core/frame/Frame.h View 1 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download
M Source/core/frame/Frame.cpp View 1 2 3 4 1 chunk +98 lines, -0 lines 0 comments Download
M Source/core/frame/FrameView.cpp View 1 2 3 4 1 chunk +6 lines, -5 lines 0 comments Download
M Source/core/frame/History.cpp View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M Source/core/frame/LocalDOMWindow.cpp View 1 2 3 4 3 chunks +3 lines, -3 lines 0 comments Download
M Source/core/frame/LocalFrame.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/frame/LocalFrame.cpp View 1 2 3 4 1 chunk +12 lines, -0 lines 0 comments Download
M Source/core/frame/Location.cpp View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
M Source/core/frame/RemoteFrame.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/html/HTMLFormElement.cpp View 1 2 3 chunks +5 lines, -3 lines 0 comments Download
M Source/core/html/HTMLFrameOwnerElement.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/HTMLFrameOwnerElement.cpp View 1 chunk +5 lines, -0 lines 0 comments Download
M Source/core/loader/FrameLoader.h View 1 2 3 4 1 chunk +0 lines, -2 lines 0 comments Download
M Source/core/loader/FrameLoader.cpp View 1 2 3 4 4 chunks +7 lines, -18 lines 0 comments Download
M Source/core/page/CreateWindow.cpp View 1 2 3 2 chunks +3 lines, -2 lines 0 comments Download

Messages

Total messages: 14 (2 generated)
Nate Chapin
This ended up a bit bigger than I intended, hopefully the summary is sufficiently clear ...
6 years ago (2014-12-12 23:22:39 UTC) #2
dcheng
https://codereview.chromium.org/799923006/diff/20001/Source/core/dom/RemoteSecurityContext.h File Source/core/dom/RemoteSecurityContext.h (right): https://codereview.chromium.org/799923006/diff/20001/Source/core/dom/RemoteSecurityContext.h#newcode18 Source/core/dom/RemoteSecurityContext.h:18: virtual void didUpdateSecurityOrigin() override { } No virtual per ...
6 years ago (2014-12-13 01:55:49 UTC) #3
Nate Chapin
https://codereview.chromium.org/799923006/diff/20001/Source/core/dom/RemoteSecurityContext.h File Source/core/dom/RemoteSecurityContext.h (right): https://codereview.chromium.org/799923006/diff/20001/Source/core/dom/RemoteSecurityContext.h#newcode18 Source/core/dom/RemoteSecurityContext.h:18: virtual void didUpdateSecurityOrigin() override { } On 2014/12/13 01:55:48, ...
6 years ago (2014-12-20 00:09:14 UTC) #4
dcheng
https://codereview.chromium.org/799923006/diff/40001/Source/core/dom/SecurityContext.cpp File Source/core/dom/SecurityContext.cpp (right): https://codereview.chromium.org/799923006/diff/40001/Source/core/dom/SecurityContext.cpp#newcode72 Source/core/dom/SecurityContext.cpp:72: // The SandboxOrigin is stored redundantly in the security ...
5 years, 11 months ago (2015-01-08 00:44:59 UTC) #5
Nate Chapin
https://codereview.chromium.org/799923006/diff/40001/Source/core/dom/SecurityContext.cpp File Source/core/dom/SecurityContext.cpp (right): https://codereview.chromium.org/799923006/diff/40001/Source/core/dom/SecurityContext.cpp#newcode72 Source/core/dom/SecurityContext.cpp:72: // The SandboxOrigin is stored redundantly in the security ...
5 years, 11 months ago (2015-01-08 17:10:52 UTC) #6
dcheng
https://codereview.chromium.org/799923006/diff/40001/Source/core/page/CreateWindow.cpp File Source/core/page/CreateWindow.cpp (right): https://codereview.chromium.org/799923006/diff/40001/Source/core/page/CreateWindow.cpp#newcode63 Source/core/page/CreateWindow.cpp:63: return frame->isLocalFrame() ? toLocalFrame(frame) : nullptr; On 2015/01/08 at ...
5 years, 11 months ago (2015-01-08 23:17:26 UTC) #7
dcheng
https://codereview.chromium.org/799923006/diff/40001/Source/core/frame/LocalDOMWindow.cpp File Source/core/frame/LocalDOMWindow.cpp (right): https://codereview.chromium.org/799923006/diff/40001/Source/core/frame/LocalDOMWindow.cpp#newcode1711 Source/core/frame/LocalDOMWindow.cpp:1711: if (!activeDocument->frame() || !activeDocument->frame()->canNavigate(*frame())) On 2015/01/08 at 17:10:52, Nate ...
5 years, 11 months ago (2015-01-08 23:20:19 UTC) #8
Nate Chapin
On 2015/01/08 23:20:19, dcheng wrote: > https://codereview.chromium.org/799923006/diff/40001/Source/core/frame/LocalDOMWindow.cpp > File Source/core/frame/LocalDOMWindow.cpp (right): > > https://codereview.chromium.org/799923006/diff/40001/Source/core/frame/LocalDOMWindow.cpp#newcode1711 > ...
5 years, 11 months ago (2015-01-09 00:09:41 UTC) #9
Nate Chapin
https://codereview.chromium.org/799923006/diff/60001/Source/core/frame/History.cpp File Source/core/frame/History.cpp (right): https://codereview.chromium.org/799923006/diff/60001/Source/core/frame/History.cpp#newcode109 Source/core/frame/History.cpp:109: if (!activeDocument->frame()->canNavigate(*m_frame)) On 2015/01/08 23:17:26, dcheng wrote: > Does ...
5 years, 11 months ago (2015-01-09 00:12:46 UTC) #10
dcheng
lgtm
5 years, 11 months ago (2015-01-09 00:13:49 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/799923006/80001
5 years, 11 months ago (2015-01-09 00:15:28 UTC) #13
commit-bot: I haz the power
5 years, 11 months ago (2015-01-09 01:58:01 UTC) #14
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=188097

Powered by Google App Engine
This is Rietveld 408576698