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

Issue 1339803002: Clear page display after navigation if no rendered output arrives (Closed)

Created:
5 years, 3 months ago by kenrb
Modified:
5 years, 3 months ago
Reviewers:
Charlie Reis
CC:
chromium-reviews, creis+watch_chromium.org, yusukes+watch_chromium.org, shuchen+watch_chromium.org, nasko+codewatch_chromium.org, jam, sievers+watch_chromium.org, jbauman+watch_chromium.org, nona+watch_chromium.org, darin-cc_chromium.org, kalyank, piman+watch_chromium.org, danakj+watch_chromium.org, James Su, miu+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Clear page display after navigation if no rendered output arrives A bug reporter found a way to navigate a page and cause the omnibar to update with the destination's URL, but block the renderer from producing any compositor frames using script. This has some implications for phishing, even though the phisher's actual content has been unloaded from the renderer process. This CL creates a timeout which clears the last displayed compositor frame if no update is received within 2 seconds after the navigation being committed. BUG=497588 Committed: https://crrev.com/3ddcd84850a1bfe9f4b3974f355abce66f4e35ab Cr-Commit-Position: refs/heads/master@{#348902}

Patch Set 1 #

Patch Set 2 : Added Android #

Patch Set 3 : Crash bug fix #

Patch Set 4 : Added test #

Total comments: 13

Patch Set 5 : Review comments addressed #

Patch Set 6 : Made ClearCompositorFrame pure virtual #

Unified diffs Side-by-side diffs Delta from patch set Stats (+137 lines, -1 line) Patch
M content/browser/compositor/delegated_frame_host.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/compositor/delegated_frame_host.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.cc View 1 2 3 4 1 chunk +12 lines, -0 lines 0 comments Download
M content/browser/frame_host/render_widget_host_view_child_frame.h View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.h View 1 2 3 4 6 chunks +27 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.cc View 1 2 3 4 5 chunks +25 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_unittest.cc View 1 2 3 4 4 chunks +36 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.cc View 1 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_base.h View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac.mm View 1 chunk +5 lines, -0 lines 0 comments Download
M content/common/content_constants_internal.h View 1 chunk +4 lines, -0 lines 0 comments Download
M content/common/content_constants_internal.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M content/test/test_render_view_host.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 12 (3 generated)
kenrb
Charlie: Do you have time to look at this?
5 years, 3 months ago (2015-09-14 20:02:41 UTC) #2
Charlie Reis
Looks pretty good-- thanks for following up on this. A few minor questions below and ...
5 years, 3 months ago (2015-09-14 20:54:56 UTC) #3
kenrb
https://codereview.chromium.org/1339803002/diff/60001/content/browser/frame_host/render_frame_host_impl.cc File content/browser/frame_host/render_frame_host_impl.cc (right): https://codereview.chromium.org/1339803002/diff/60001/content/browser/frame_host/render_frame_host_impl.cc#newcode928 content/browser/frame_host/render_frame_host_impl.cc:928: frame_tree_node()->navigator()->DidNavigate(this, validated_params); On 2015/09/14 20:54:55, Charlie Reis (slow till ...
5 years, 3 months ago (2015-09-14 21:29:36 UTC) #4
Charlie Reis
Thanks. LGTM with one note. https://codereview.chromium.org/1339803002/diff/60001/content/browser/renderer_host/render_widget_host_unittest.cc File content/browser/renderer_host/render_widget_host_unittest.cc (right): https://codereview.chromium.org/1339803002/diff/60001/content/browser/renderer_host/render_widget_host_unittest.cc#newcode1127 content/browser/renderer_host/render_widget_host_unittest.cc:1127: EXPECT_TRUE(host_->new_content_rendering_timeout_fired()); On 2015/09/14 21:29:36, ...
5 years, 3 months ago (2015-09-14 21:40:18 UTC) #5
kenrb
https://codereview.chromium.org/1339803002/diff/60001/content/browser/renderer_host/render_widget_host_view_base.h File content/browser/renderer_host/render_widget_host_view_base.h (right): https://codereview.chromium.org/1339803002/diff/60001/content/browser/renderer_host/render_widget_host_view_base.h#newcode167 content/browser/renderer_host/render_widget_host_view_base.h:167: virtual void ClearCompositorFrame() {} On 2015/09/14 21:40:18, Charlie Reis ...
5 years, 3 months ago (2015-09-15 15:25:41 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1339803002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1339803002/100001
5 years, 3 months ago (2015-09-15 15:53:33 UTC) #9
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 3 months ago (2015-09-15 16:13:07 UTC) #10
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/3ddcd84850a1bfe9f4b3974f355abce66f4e35ab Cr-Commit-Position: refs/heads/master@{#348902}
5 years, 3 months ago (2015-09-15 16:13:44 UTC) #11
commit-bot: I haz the power
5 years, 3 months ago (2015-09-23 12:45:40 UTC) #12
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/3ddcd84850a1bfe9f4b3974f355abce66f4e35ab
Cr-Commit-Position: refs/heads/master@{#348902}

Powered by Google App Engine
This is Rietveld 408576698