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

Issue 2684993011: Revert of Make TestRenderWidgetHostView::Show/Hide call through to RWHI (Closed)

Created:
3 years, 10 months ago by Bret
Modified:
3 years, 10 months ago
Reviewers:
johnme, boliu, sky, no sievers
CC:
chromium-reviews, darin-cc_chromium.org, nasko+codewatch_chromium.org, jam, creis+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@crash
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Revert of Make TestRenderWidgetHostView::Show/Hide call through to RWHI (patchset #9 id:160001 of https://codereview.chromium.org/1713473002/ ) Reason for revert: Speculative revert. Many tests are crashing on CrOS, yours is the only plausible CL. Apologizes in advance if it turns out to be the wrong CL. Example failure: https://uberchromegw.corp.google.com/i/chromium.chromiumos/builders/Linux%20ChromiumOS%20Tests%20%28dbg%29%281%29/builds/22356 Original issue's description: > Make TestRenderWidgetHostView::Show/Hide call through to RWHI > > Before this patch, after calling test_web_contents->WasHidden() on a > TestWebContents, test_web_contents->GetMainFrame()->GetVisibilityState() > would still return blink::WebPageVisibilityStateVisible, because > TestRenderWidgetHostView::Hide didn't propagate the WasHidden to > RenderWidgetHostImpl (unlike all the non-test implementations of > RenderWidgetHostView). > > This patch fixes that. There don't seem to be significant downsides to > propagating the WasHidden to RWHI; it tries to send a few IPC messages, > but since Send is stubbed out, those are simply discarded. > > I did have to add a null check in > RenderWidgetHostViewBase::GetPhysicalBackingSize (called from > RWHI::GetResizeParams, called from RWHI::WasResized, called from > RWHI::WasShown), since gfx::Screen::GetScreen() sometimes returns null > in unit tests. > > And I had to update some of the web_contents_impl_unittest.cc tests, > which were expecting interstitials etc to be hidden, even though RWHI > generally defaults to visible (it would be possible to instead keep the > is_showing_ bool in TestRenderWidgetHostView, but it seems weird to > allow TRWHV and RWHI to disagree about whether they are visible. > > Also there's one test that manages to hit a null screen on navigation, > so I added a TestScreen to > ExtensionContextMenuModelTest.TestPageAccessSubmenu. > > BUG=577336, 636953 > > Review-Url: https://codereview.chromium.org/1713473002 > Cr-Commit-Position: refs/heads/master@{#449606} > Committed: https://chromium.googlesource.com/chromium/src/+/1c496374204313ae4233bc19c6495c8c2b0ee660 TBR=sievers@chromium.org,boliu@chromium.org,sky@chromium.org,johnme@chromium.org # Skipping CQ checks because original CL landed less than 1 days ago. NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true BUG=577336, 636953 Review-Url: https://codereview.chromium.org/2684993011 Cr-Commit-Position: refs/heads/master@{#449797} Committed: https://chromium.googlesource.com/chromium/src/+/f3b00fa5e74ebdcdf63419a8c8b1e2cfe7d7024f

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+46 lines, -27 lines) Patch
M chrome/browser/extensions/extension_context_menu_model_unittest.cc View 4 chunks +0 lines, -4 lines 0 comments Download
M chrome/browser/push_messaging/push_messaging_notification_manager_unittest.cc View 3 chunks +4 lines, -4 lines 0 comments Download
M components/visitedlink/test/visitedlink_unittest.cc View 5 chunks +4 lines, -6 lines 0 comments Download
M content/browser/web_contents/web_contents_impl_unittest.cc View 9 chunks +15 lines, -7 lines 0 comments Download
M content/public/test/test_renderer_host.h View 1 chunk +5 lines, -0 lines 0 comments Download
M content/test/test_render_view_host.h View 4 chunks +6 lines, -1 line 0 comments Download
M content/test/test_render_view_host.cc View 3 chunks +12 lines, -5 lines 0 comments Download

Messages

Total messages: 6 (3 generated)
Bret
Created Revert of Make TestRenderWidgetHostView::Show/Hide call through to RWHI
3 years, 10 months ago (2017-02-11 00:05:26 UTC) #2
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/2684993011/1
3 years, 10 months ago (2017-02-11 00:05:53 UTC) #3
commit-bot: I haz the power
3 years, 10 months ago (2017-02-11 00:07:20 UTC) #6
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/f3b00fa5e74ebdcdf63419a8c8b1...

Powered by Google App Engine
This is Rietveld 408576698