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

Issue 1991273003: Fire visibilityChange event on out-of-process iframes. (Closed)

Created:
4 years, 7 months ago by lfg
Modified:
4 years, 5 months ago
CC:
blink-reviews, blink-reviews-api_chromium.org, cbentzel+watch_chromium.org, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, davidben+watch_chromium.org, dglazkov+blink, gavinp+prer_chromium.org, jam, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org, mlamouri+watch-blink_chromium.org, nasko+codewatch_chromium.org, site-isolation-reviews_chromium.org, tburkard+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fire visibilityChange event on out-of-process iframes. Design doc: https://docs.google.com/document/d/1qdlgaC277SnnmQv7hoNFTGp-OCvokEc4mA2NmAzOyBU/edit?usp=sharing BUG=550967 CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/7171540721a57cf5926709a277e5d70b09965643 Cr-Commit-Position: refs/heads/master@{#403176}

Patch Set 1 #

Total comments: 35

Patch Set 2 : rebase #

Patch Set 3 : addressing comments #

Patch Set 4 : rebase #

Patch Set 5 : addressing comments #

Total comments: 2

Patch Set 6 : rebase #

Patch Set 7 : WebView->WebFrame #

Total comments: 1

Patch Set 8 : passing initial visibility to constructor #

Patch Set 9 : fix android test+naming #

Total comments: 13

Patch Set 10 : rebase #

Patch Set 11 : addressing comments #

Total comments: 5

Patch Set 12 : fixing androidandroid build #

Patch Set 13 : rebase #

Patch Set 14 : rebase #

Patch Set 15 : compositor visibility #

Patch Set 16 : rebase #

Patch Set 17 : comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+205 lines, -145 lines) Patch
M chrome/renderer/prerender/prerender_helper.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M components/plugins/renderer/webview_plugin.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download
M components/printing/renderer/print_web_view_helper.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +4 lines, -2 lines 0 comments Download
M content/browser/frame_host/render_frame_host_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/site_per_process_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +39 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 10 11 12 13 14 15 2 chunks +4 lines, -0 lines 0 comments Download
M content/common/page_messages.h View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M content/public/renderer/render_frame.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +4 lines, -0 lines 0 comments Download
M content/public/renderer/render_view.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +0 lines, -4 lines 0 comments Download
M content/renderer/media/android/media_info_loader_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/render_frame_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +3 lines, -0 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 6 chunks +30 lines, -29 lines 0 comments Download
M content/renderer/render_view_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 5 chunks +2 lines, -6 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 6 chunks +24 lines, -29 lines 0 comments Download
M extensions/renderer/scoped_web_frame.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M media/blink/buffered_data_source_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -1 line 0 comments Download
M media/blink/buffered_resource_loader_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M media/blink/multibuffer_data_source_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -1 line 0 comments Download
M media/blink/resource_multibuffer_data_provider_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M media/blink/webmediaplayer_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/page/Page.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/WebFrameWidgetImpl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +3 lines, -14 lines 0 comments Download
M third_party/WebKit/Source/web/WebLocalFrameImpl.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/WebViewFrameWidget.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/WebViewFrameWidget.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +4 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/WebViewImpl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 4 chunks +13 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/WebViewImpl.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 5 chunks +18 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/web/tests/ChromeClientImplTest.cpp View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/tests/FrameLoaderClientImplTest.cpp View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/tests/FrameTestHelpers.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/tests/FrameThrottlingTest.cpp View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/tests/WebFrameTest.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 13 chunks +13 lines, -13 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebViewTest.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/public/web/WebFrameClient.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +9 lines, -0 lines 0 comments Download
M third_party/WebKit/public/web/WebFrameWidget.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/public/web/WebView.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +3 lines, -2 lines 0 comments Download
M third_party/WebKit/public/web/WebViewClient.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +0 lines, -9 lines 0 comments Download

Messages

Total messages: 60 (18 generated)
lfg
Daniel, can you do a first pass review?
4 years, 7 months ago (2016-05-19 23:56:32 UTC) #3
lfg
Ken, can you do an initial review (just to lighten the load on Daniel)?
4 years, 7 months ago (2016-05-24 17:57:12 UTC) #6
kenrb
Please add a CL description, I don't entirely understand everything you are doing here (hence, ...
4 years, 7 months ago (2016-05-24 20:25:18 UTC) #7
kenrb
https://codereview.chromium.org/1991273003/diff/1/third_party/WebKit/Source/core/page/Page.cpp File third_party/WebKit/Source/core/page/Page.cpp (right): https://codereview.chromium.org/1991273003/diff/1/third_party/WebKit/Source/core/page/Page.cpp#newcode362 third_party/WebKit/Source/core/page/Page.cpp:362: m_mainFrame->didChangeVisibilityState(); On 2016/05/24 20:25:18, kenrb wrote: > How does ...
4 years, 7 months ago (2016-05-24 20:33:21 UTC) #8
dcheng
Also, agree with Ken's comments about updating the CL description to provide an overview of ...
4 years, 7 months ago (2016-05-24 20:38:24 UTC) #9
lfg
Please take another look. I realize a lot of this stuff is not obvious, I ...
4 years, 7 months ago (2016-05-24 23:33:51 UTC) #11
kenrb
This is basically fine from my perspective, just a couple more minor comments. https://codereview.chromium.org/1991273003/diff/1/content/renderer/render_view_impl.cc File ...
4 years, 7 months ago (2016-05-25 20:29:14 UTC) #13
lfg
https://codereview.chromium.org/1991273003/diff/1/content/renderer/render_view_impl.cc File content/renderer/render_view_impl.cc (right): https://codereview.chromium.org/1991273003/diff/1/content/renderer/render_view_impl.cc#newcode2789 content/renderer/render_view_impl.cc:2789: GetMainRenderFrame() ? GetMainRenderFrame()->visibilityState() On 2016/05/25 20:29:14, kenrb wrote: > ...
4 years, 6 months ago (2016-05-31 19:54:01 UTC) #14
kenrb
lgtm from my side.
4 years, 6 months ago (2016-06-01 20:22:51 UTC) #15
dcheng
https://codereview.chromium.org/1991273003/diff/100001/third_party/WebKit/public/web/WebFrameClient.h File third_party/WebKit/public/web/WebFrameClient.h (right): https://codereview.chromium.org/1991273003/diff/100001/third_party/WebKit/public/web/WebFrameClient.h#newcode716 third_party/WebKit/public/web/WebFrameClient.h:716: // Returns the current visibility of the WebView. WebView?
4 years, 6 months ago (2016-06-02 22:16:07 UTC) #16
lfg
https://codereview.chromium.org/1991273003/diff/100001/third_party/WebKit/public/web/WebFrameClient.h File third_party/WebKit/public/web/WebFrameClient.h (right): https://codereview.chromium.org/1991273003/diff/100001/third_party/WebKit/public/web/WebFrameClient.h#newcode716 third_party/WebKit/public/web/WebFrameClient.h:716: // Returns the current visibility of the WebView. On ...
4 years, 6 months ago (2016-06-03 18:34:58 UTC) #17
lfg
creis@chromium.org: Please review changes in content/
4 years, 6 months ago (2016-06-03 18:35:24 UTC) #19
dcheng
https://codereview.chromium.org/1991273003/diff/140001/content/renderer/render_view_impl.cc File content/renderer/render_view_impl.cc (right): https://codereview.chromium.org/1991273003/diff/140001/content/renderer/render_view_impl.cc#newcode3091 content/renderer/render_view_impl.cc:3091: // This method should only be used to determine ...
4 years, 6 months ago (2016-06-03 21:22:52 UTC) #21
lfg
On 2016/06/03 21:22:52, dcheng wrote: > https://codereview.chromium.org/1991273003/diff/140001/content/renderer/render_view_impl.cc > File content/renderer/render_view_impl.cc (right): > > https://codereview.chromium.org/1991273003/diff/140001/content/renderer/render_view_impl.cc#newcode3091 > ...
4 years, 6 months ago (2016-06-03 21:41:36 UTC) #22
lfg
+creis for real.
4 years, 6 months ago (2016-06-03 21:43:11 UTC) #24
dcheng
On 2016/06/03 at 21:41:36, lfg wrote: > On 2016/06/03 21:22:52, dcheng wrote: > > https://codereview.chromium.org/1991273003/diff/140001/content/renderer/render_view_impl.cc ...
4 years, 6 months ago (2016-06-04 04:58:01 UTC) #25
dcheng
On 2016/06/04 at 04:58:01, dcheng wrote: > On 2016/06/03 at 21:41:36, lfg wrote: > > ...
4 years, 6 months ago (2016-06-04 04:58:21 UTC) #26
lfg
On 2016/06/04 04:58:21, dcheng wrote: > > I think we should pass it on creation; ...
4 years, 6 months ago (2016-06-06 21:49:43 UTC) #27
Charlie Reis
content/ seems mostly ok to me, with a few clarifications. Adding avi@ to also take ...
4 years, 6 months ago (2016-06-06 23:15:09 UTC) #29
Avi (use Gerrit)
All the TODOs affected had my name attached to them by dcheng. Daniel has more ...
4 years, 6 months ago (2016-06-07 01:41:53 UTC) #30
dcheng
As for the //content changes, the main TODO I saw removed is in RenderFrameImpl::WasShown, and ...
4 years, 6 months ago (2016-06-07 05:28:57 UTC) #31
lfg
https://codereview.chromium.org/1991273003/diff/180001/content/browser/frame_host/render_frame_host_manager.cc File content/browser/frame_host/render_frame_host_manager.cc (right): https://codereview.chromium.org/1991273003/diff/180001/content/browser/frame_host/render_frame_host_manager.cc#newcode1772 content/browser/frame_host/render_frame_host_manager.cc:1772: delegate_->IsHidden()); On 2016/06/06 23:15:09, Charlie Reis wrote: > This ...
4 years, 6 months ago (2016-06-08 20:00:24 UTC) #33
Charlie Reis
Thanks, LGTM. I'm excited to see so many TODO's and FIXME's going away! One sanity ...
4 years, 6 months ago (2016-06-08 21:39:07 UTC) #34
lfg
https://codereview.chromium.org/1991273003/diff/240001/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (left): https://codereview.chromium.org/1991273003/diff/240001/content/renderer/render_frame_impl.cc#oldcode1635 content/renderer/render_frame_impl.cc:1635: // TODO(creis): Support this for subframes as well. On ...
4 years, 6 months ago (2016-06-08 21:53:50 UTC) #35
Charlie Reis
https://codereview.chromium.org/1991273003/diff/240001/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (left): https://codereview.chromium.org/1991273003/diff/240001/content/renderer/render_frame_impl.cc#oldcode1635 content/renderer/render_frame_impl.cc:1635: // TODO(creis): Support this for subframes as well. On ...
4 years, 6 months ago (2016-06-08 22:18:35 UTC) #36
lfg
+piman: Can you comment on how much resources we would be wasting by having the ...
4 years, 6 months ago (2016-06-08 22:47:34 UTC) #38
dcheng
blink lgtm
4 years, 6 months ago (2016-06-09 07:15:18 UTC) #39
piman
On Wed, Jun 8, 2016 at 3:47 PM, <lfg@chromium.org> wrote: > +piman: Can you comment ...
4 years, 6 months ago (2016-06-09 19:20:56 UTC) #40
piman
On Wed, Jun 8, 2016 at 3:47 PM, <lfg@chromium.org> wrote: > +piman: Can you comment ...
4 years, 6 months ago (2016-06-09 19:20:56 UTC) #41
lfg
On 2016/06/09 19:20:56, piman OOO back 2016-06-20 wrote: > On Wed, Jun 8, 2016 at ...
4 years, 6 months ago (2016-06-18 10:44:32 UTC) #42
dcheng
On 2016/06/18 10:44:32, lfg (OOO until Jun 25) wrote: > On 2016/06/09 19:20:56, piman OOO ...
4 years, 6 months ago (2016-06-20 14:57:10 UTC) #43
lfg
On 2016/06/20 14:57:10, dcheng wrote: > > Can you add some comments to setCompositorVisibility() / ...
4 years, 5 months ago (2016-06-28 12:36:09 UTC) #44
lfg
+jochen@ for changes in chrome/, content/, extensions/.
4 years, 5 months ago (2016-06-28 13:32:26 UTC) #46
lfg
On 2016/06/28 13:32:26, lfg wrote: > +jochen@ for changes in chrome/, content/, extensions/. That should've ...
4 years, 5 months ago (2016-06-28 13:33:48 UTC) #47
jochen (gone - plz use gerrit)
lgtm
4 years, 5 months ago (2016-06-29 15:14:41 UTC) #48
lfg
liberato@chromium.org: Please review changes in media/
4 years, 5 months ago (2016-06-29 16:09:39 UTC) #50
liberato (no reviews please)
media/ lgtm.
4 years, 5 months ago (2016-06-29 16:23:21 UTC) #51
dcheng
still lgtm
4 years, 5 months ago (2016-06-30 06:15:11 UTC) #52
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/1991273003/360001
4 years, 5 months ago (2016-06-30 13:26:56 UTC) #55
commit-bot: I haz the power
Committed patchset #17 (id:360001)
4 years, 5 months ago (2016-06-30 15:04:38 UTC) #57
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-06-30 15:04:51 UTC) #58
commit-bot: I haz the power
4 years, 5 months ago (2016-06-30 15:06:43 UTC) #60
Message was sent while issue was closed.
Patchset 17 (id:??) landed as
https://crrev.com/7171540721a57cf5926709a277e5d70b09965643
Cr-Commit-Position: refs/heads/master@{#403176}

Powered by Google App Engine
This is Rietveld 408576698