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

Issue 910073003: <webview>: Make contentWindow available prior to attachment (on display:none). (Closed)

Created:
5 years, 10 months ago by Fady Samuel
Modified:
5 years, 9 months ago
Reviewers:
Charlie Reis, nasko, lfg
CC:
chromium-reviews, darin-cc_chromium.org, jam, extensions-reviews_chromium.org, chromium-apps-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

<webview>: Make contentWindow available prior to attachment (on display:none). This CL updates the createGuest API to return an optional contentWindow. This CL renames GuestSizer to GuestProxyHost which better represents what it does. GuestProxyHost exposes "LoadURLWithParams" which, after navigating, creates a swapped out RenderView for the guest in the embedder's process. This CL removes RegisterDestructionCallback from BrowserPluginGuestDelegate. BUG=456118 Test=WebViewTest.NoContentSettingsAPI runs with display:none now. Committed: https://crrev.com/60b42286b4f63882bc5f1ffc4fd7e94bc5d319f0 Cr-Commit-Position: refs/heads/master@{#319833}

Patch Set 1 #

Patch Set 2 : Remove unnecessary changes #

Patch Set 3 : Works #

Patch Set 4 : Passes test #

Patch Set 5 : Remove unnecessary code #

Patch Set 6 : Use constants #

Total comments: 28

Patch Set 7 : Addressed comments #

Total comments: 6

Patch Set 8 : Addressed comments #

Patch Set 9 : Addressed creis' comments #

Total comments: 42

Patch Set 10 : Addressed all of creis' comments (I hope) #

Total comments: 1

Patch Set 11 : Addressed nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+201 lines, -102 lines) Patch
M chrome/test/data/extensions/platform_apps/web_view/shim/inject_comm_channel.js View 1 2 3 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/test/data/extensions/platform_apps/web_view/shim/main.js View 1 2 3 4 5 6 7 8 9 2 chunks +6 lines, -0 lines 0 comments Download
M content/browser/browser_plugin/browser_plugin_guest.h View 1 2 3 4 5 6 7 8 9 6 chunks +10 lines, -6 lines 0 comments Download
M content/browser/browser_plugin/browser_plugin_guest.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +37 lines, -22 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.h View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 4 5 6 7 8 9 2 chunks +7 lines, -6 lines 0 comments Download
M content/public/browser/browser_plugin_guest_delegate.h View 1 2 3 4 5 6 7 8 9 10 4 chunks +5 lines, -9 lines 0 comments Download
A content/public/browser/guest_host.h View 1 2 3 4 5 6 7 8 9 1 chunk +37 lines, -0 lines 0 comments Download
D content/public/browser/guest_sizer.h View 1 2 1 chunk +0 lines, -27 lines 0 comments Download
M extensions/browser/api/guest_view/guest_view_internal_api.cc View 1 2 3 4 5 6 7 2 chunks +7 lines, -1 line 0 comments Download
M extensions/browser/guest_view/guest_view_base.h View 1 2 3 4 5 6 7 8 9 8 chunks +18 lines, -7 lines 0 comments Download
M extensions/browser/guest_view/guest_view_base.cc View 1 2 3 4 5 6 7 8 9 7 chunks +19 lines, -13 lines 0 comments Download
M extensions/browser/guest_view/guest_view_message_filter.cc View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M extensions/browser/guest_view/web_view/web_view_guest.cc View 1 2 3 4 5 6 7 3 chunks +2 lines, -3 lines 0 comments Download
M extensions/common/api/guest_view_internal.json View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download
M extensions/common/guest_view/guest_view_constants.h View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M extensions/common/guest_view/guest_view_constants.cc View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M extensions/renderer/guest_view/guest_view_internal_custom_bindings.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M extensions/renderer/guest_view/guest_view_internal_custom_bindings.cc View 1 2 3 4 5 6 3 chunks +30 lines, -0 lines 0 comments Download
M extensions/renderer/resources/guest_view/guest_view.js View 1 2 3 4 5 6 7 8 9 3 chunks +5 lines, -4 lines 0 comments Download

Messages

Total messages: 24 (6 generated)
Fady Samuel
Hi Charlie, Nasko, Any thoughts on why this might be failing? Thanks, Fady
5 years, 10 months ago (2015-02-10 00:39:04 UTC) #2
nasko
On 2015/02/10 00:39:04, Fady Samuel wrote: > Hi Charlie, Nasko, > > Any thoughts on ...
5 years, 10 months ago (2015-02-10 15:55:16 UTC) #3
Fady Samuel
PTAL Lucas!
5 years, 9 months ago (2015-03-03 20:14:58 UTC) #5
Fady Samuel
+creis@ for web_contents_impl.* and content/public changes.
5 years, 9 months ago (2015-03-03 20:30:43 UTC) #7
Fady Samuel
+nasko@ FYI
5 years, 9 months ago (2015-03-03 21:14:12 UTC) #9
lfg
Added some comments. https://codereview.chromium.org/910073003/diff/100001/content/public/browser/guest_proxy_host.h File content/public/browser/guest_proxy_host.h (right): https://codereview.chromium.org/910073003/diff/100001/content/public/browser/guest_proxy_host.h#newcode1 content/public/browser/guest_proxy_host.h:1: // Copyright 2014 The Chromium Authors. ...
5 years, 9 months ago (2015-03-04 19:10:20 UTC) #10
Charlie Reis
I'm not thrilled with exposing the management of swapped out RenderViews (or the concept of ...
5 years, 9 months ago (2015-03-04 20:08:36 UTC) #11
Fady Samuel
PTAL Charlie, Lucas. https://codereview.chromium.org/910073003/diff/100001/content/browser/browser_plugin/browser_plugin_guest.cc File content/browser/browser_plugin/browser_plugin_guest.cc (right): https://codereview.chromium.org/910073003/diff/100001/content/browser/browser_plugin/browser_plugin_guest.cc#newcode109 content/browser/browser_plugin/browser_plugin_guest.cc:109: int BrowserPluginGuest::GetOrCreateGuestProxyInOwnerProcess() { On 2015/03/04 20:08:36, ...
5 years, 9 months ago (2015-03-05 20:56:23 UTC) #12
lfg
lgtm with nit. https://codereview.chromium.org/910073003/diff/120001/extensions/browser/guest_view/web_view/web_view_guest.cc File extensions/browser/guest_view/web_view/web_view_guest.cc (right): https://codereview.chromium.org/910073003/diff/120001/extensions/browser/guest_view/web_view/web_view_guest.cc#newcode987 extensions/browser/guest_view/web_view/web_view_guest.cc:987: ignore_result(proxy_host()->GetGuestProxyRoutingID()); Comment that this is here ...
5 years, 9 months ago (2015-03-05 22:14:00 UTC) #13
Charlie Reis
https://codereview.chromium.org/910073003/diff/100001/content/browser/browser_plugin/browser_plugin_guest.cc File content/browser/browser_plugin/browser_plugin_guest.cc (right): https://codereview.chromium.org/910073003/diff/100001/content/browser/browser_plugin/browser_plugin_guest.cc#newcode113 content/browser/browser_plugin/browser_plugin_guest.cc:113: // the embedder process will always be the same ...
5 years, 9 months ago (2015-03-06 00:05:36 UTC) #14
Fady Samuel
PTAL Charlie. https://codereview.chromium.org/910073003/diff/120001/content/public/browser/guest_proxy_host.h File content/public/browser/guest_proxy_host.h (right): https://codereview.chromium.org/910073003/diff/120001/content/public/browser/guest_proxy_host.h#newcode14 content/public/browser/guest_proxy_host.h:14: class GuestProxyHost { On 2015/03/06 00:05:36, Charlie ...
5 years, 9 months ago (2015-03-07 00:20:28 UTC) #15
Charlie Reis
Sorry, there's still some questions below for things I don't understand. Thanks for moving the ...
5 years, 9 months ago (2015-03-09 18:53:00 UTC) #16
Charlie Reis
Ok, we were approaching my goal (don't expose an API that creates a swapped out ...
5 years, 9 months ago (2015-03-09 21:25:22 UTC) #17
Fady Samuel
PTAL Charlie. There were a lot of comments and some you asked me to disregard. ...
5 years, 9 months ago (2015-03-09 23:02:42 UTC) #18
Charlie Reis
Thanks. LGTM with nit. https://codereview.chromium.org/910073003/diff/180001/content/public/browser/browser_plugin_guest_delegate.h File content/public/browser/browser_plugin_guest_delegate.h (right): https://codereview.chromium.org/910073003/diff/180001/content/public/browser/browser_plugin_guest_delegate.h#newcode48 content/public/browser/browser_plugin_guest_delegate.h:48: // |guest_proxy_routing_id| is the routingID ...
5 years, 9 months ago (2015-03-09 23:39:24 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/910073003/200001
5 years, 9 months ago (2015-03-10 01:05:25 UTC) #22
commit-bot: I haz the power
Committed patchset #11 (id:200001)
5 years, 9 months ago (2015-03-10 03:29:23 UTC) #23
commit-bot: I haz the power
5 years, 9 months ago (2015-03-10 03:30:33 UTC) #24
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/60b42286b4f63882bc5f1ffc4fd7e94bc5d319f0
Cr-Commit-Position: refs/heads/master@{#319833}

Powered by Google App Engine
This is Rietveld 408576698