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

Issue 338993003: Cleanup various WebView/WebFrame APIs to properly handle remote frames. (Closed)

Created:
6 years, 6 months ago by dcheng
Modified:
6 years, 6 months ago
CC:
abarth-chromium, blink-reviews, dglazkov+blink, site-isolation-reviews_chromium.org
Project:
blink
Visibility:
Public.

Description

Cleanup various WebView/WebFrame APIs to properly handle remote frames. WebCore can now also properly set a RemoteFrame as the main frame. BUG=346764 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=176551

Patch Set 1 #

Patch Set 2 : Fix component build #

Patch Set 3 : Throw in a call to relaxAdoptionRequirement #

Total comments: 1

Patch Set 4 : Duplicate some code #

Patch Set 5 : Oops #

Patch Set 6 : Argh #

Patch Set 7 : Experiment #

Patch Set 8 : Remove unneeded header. #

Total comments: 1

Patch Set 9 : Lifetime commentation #

Patch Set 10 : Refine comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+103 lines, -102 lines) Patch
M Source/core/frame/Frame.cpp View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/frame/LocalFrame.cpp View 4 5 6 1 chunk +0 lines, -3 lines 0 comments Download
M Source/core/page/Page.h View 1 2 3 4 5 6 7 8 9 2 chunks +16 lines, -4 lines 0 comments Download
M Source/core/page/Page.cpp View 1 2 3 4 5 6 7 8 7 chunks +14 lines, -9 lines 0 comments Download
M Source/web/RemoteFrameClient.h View 2 chunks +3 lines, -0 lines 0 comments Download
M Source/web/WebFrame.cpp View 4 chunks +41 lines, -1 line 0 comments Download
M Source/web/WebLocalFrameImpl.h View 1 2 3 4 5 6 7 8 2 chunks +1 line, -5 lines 0 comments Download
M Source/web/WebLocalFrameImpl.cpp View 1 2 3 4 5 6 7 8 2 chunks +6 lines, -50 lines 0 comments Download
M Source/web/WebRemoteFrameImpl.h View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -3 lines 0 comments Download
M Source/web/WebRemoteFrameImpl.cpp View 1 2 3 4 5 6 7 8 2 chunks +7 lines, -18 lines 0 comments Download
M Source/web/WebViewImpl.cpp View 1 2 3 4 5 6 7 8 1 chunk +1 line, -3 lines 0 comments Download
M public/web/WebFrame.h View 1 2 3 4 5 6 7 8 4 chunks +10 lines, -6 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
dcheng
6 years, 6 months ago (2014-06-17 01:43:23 UTC) #1
dcheng
I had to throw in a call to relaxAdoptionRequirement() to prevent debug crashes, since setting ...
6 years, 6 months ago (2014-06-17 04:22:28 UTC) #2
eseidel
https://codereview.chromium.org/338993003/diff/40001/Source/core/frame/Frame.cpp File Source/core/frame/Frame.cpp (right): https://codereview.chromium.org/338993003/diff/40001/Source/core/frame/Frame.cpp#newcode79 Source/core/frame/Frame.cpp:79: relaxAdoptionRequirement(); I find it difficult to imagine why this ...
6 years, 6 months ago (2014-06-17 18:00:29 UTC) #3
jamesr
The function exists so that callers can add references before adopting, but that's always the ...
6 years, 6 months ago (2014-06-17 18:04:13 UTC) #4
dcheng
On 2014/06/17 at 18:04:13, jamesr wrote: > The function exists so that callers can add ...
6 years, 6 months ago (2014-06-17 18:14:22 UTC) #5
jamesr
I'm not super familiar with the ownership here - why does setting the main frame ...
6 years, 6 months ago (2014-06-17 18:17:22 UTC) #6
dcheng
On 2014/06/17 at 18:17:22, jamesr wrote: > I'm not super familiar with the ownership here ...
6 years, 6 months ago (2014-06-17 18:27:23 UTC) #7
jamesr
On 2014/06/17 18:27:23, dcheng wrote: > On 2014/06/17 at 18:17:22, jamesr wrote: > > I'm ...
6 years, 6 months ago (2014-06-17 18:30:37 UTC) #8
dcheng
On 2014/06/17 at 18:30:37, jamesr wrote: > On 2014/06/17 18:27:23, dcheng wrote: > > On ...
6 years, 6 months ago (2014-06-17 18:41:05 UTC) #9
dcheng
On 2014/06/17 at 18:41:05, dcheng wrote: > On 2014/06/17 at 18:30:37, jamesr wrote: > > ...
6 years, 6 months ago (2014-06-17 19:26:10 UTC) #10
dcheng
PTAL. I've updated it so setting the main frame doesn't require ref'ing it. It seems ...
6 years, 6 months ago (2014-06-17 22:18:38 UTC) #11
eseidel
lgtm I'm OK with this so long as you document in a comment why that ...
6 years, 6 months ago (2014-06-19 16:55:31 UTC) #12
jamesr
I agree some comments describing the ownership model would be nice but the code lgtm
6 years, 6 months ago (2014-06-19 17:46:15 UTC) #13
dcheng
The CQ bit was checked by dcheng@chromium.org
6 years, 6 months ago (2014-06-19 20:19:57 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dcheng@chromium.org/338993003/140001
6 years, 6 months ago (2014-06-19 20:20:20 UTC) #15
eseidel
lgtm
6 years, 6 months ago (2014-06-19 20:21:11 UTC) #16
dcheng
The CQ bit was checked by dcheng@chromium.org
6 years, 6 months ago (2014-06-19 20:21:43 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dcheng@chromium.org/338993003/160001
6 years, 6 months ago (2014-06-19 20:21:53 UTC) #18
commit-bot: I haz the power
6 years, 6 months ago (2014-06-19 21:28:20 UTC) #19
Message was sent while issue was closed.
Change committed as 176551

Powered by Google App Engine
This is Rietveld 408576698