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

Issue 1996163002: Ensure LegacyRenderWidgetHostHWND is always created. (Closed)

Created:
4 years, 7 months ago by dmazzoni
Modified:
4 years, 7 months ago
Reviewers:
ananta, sadrul
CC:
chromium-reviews, yusukes+watch_chromium.org, shuchen+watch_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
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Ensure LegacyRenderWidgetHostHWND is always created. Previously, LegacyRenderWidgetHostHWND was only created inside RenderWidgetHostViewAura::InternalSetBounds, and only if the parent HWND was known. However, under some circumstances, InternalSetBounds only gets called once and it gets called *before* the aura Window is attached, so the legacy win never gets created. Fix it by also trying to create the legacy win in RWHVA::AddedToRootWindow(). BUG=613336 Committed: https://crrev.com/a7e78f6f5d453c52313b74de10c5f680aa3d5ee3 Cr-Commit-Position: refs/heads/master@{#395649}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Added test #

Total comments: 2

Patch Set 3 : Clean up test #

Total comments: 6

Patch Set 4 : Feedback from sadrul #

Unified diffs Side-by-side diffs Delta from patch set Stats (+97 lines, -37 lines) Patch
M content/browser/accessibility/accessibility_win_browsertest.cc View 1 2 3 chunks +44 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.h View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.cc View 1 2 3 3 chunks +28 lines, -35 lines 0 comments Download
M content/browser/web_contents/web_contents_view_aura.h View 1 3 chunks +11 lines, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_view_aura.cc View 1 3 chunks +9 lines, -2 lines 0 comments Download

Messages

Total messages: 17 (5 generated)
dmazzoni
4 years, 7 months ago (2016-05-19 22:07:40 UTC) #2
ananta
Is there a way to come up with tests for the cases you found? https://codereview.chromium.org/1996163002/diff/1/content/browser/renderer_host/render_widget_host_view_aura.cc ...
4 years, 7 months ago (2016-05-20 23:54:09 UTC) #3
dmazzoni
Test added. https://codereview.chromium.org/1996163002/diff/1/content/browser/renderer_host/render_widget_host_view_aura.cc File content/browser/renderer_host/render_widget_host_view_aura.cc (right): https://codereview.chromium.org/1996163002/diff/1/content/browser/renderer_host/render_widget_host_view_aura.cc#newcode560 content/browser/renderer_host/render_widget_host_view_aura.cc:560: if (legacy_render_widget_host_HWND_) { On 2016/05/20 23:54:09, ananta ...
4 years, 7 months ago (2016-05-23 22:45:49 UTC) #4
ananta
https://codereview.chromium.org/1996163002/diff/20001/content/browser/renderer_host/render_widget_host_view_aura.cc File content/browser/renderer_host/render_widget_host_view_aura.cc (right): https://codereview.chromium.org/1996163002/diff/20001/content/browser/renderer_host/render_widget_host_view_aura.cc#newcode2511 content/browser/renderer_host/render_widget_host_view_aura.cc:2511: if (legacy_render_widget_host_HWND_) { We can remove this if check
4 years, 7 months ago (2016-05-23 22:49:54 UTC) #5
dmazzoni
https://codereview.chromium.org/1996163002/diff/20001/content/browser/renderer_host/render_widget_host_view_aura.cc File content/browser/renderer_host/render_widget_host_view_aura.cc (right): https://codereview.chromium.org/1996163002/diff/20001/content/browser/renderer_host/render_widget_host_view_aura.cc#newcode2511 content/browser/renderer_host/render_widget_host_view_aura.cc:2511: if (legacy_render_widget_host_HWND_) { On 2016/05/23 22:49:54, ananta wrote: > ...
4 years, 7 months ago (2016-05-23 22:57:23 UTC) #6
ananta
lgtm
4 years, 7 months ago (2016-05-23 22:59:33 UTC) #7
dmazzoni
Sadrul, could you give me an owners review? +sadrul -sky
4 years, 7 months ago (2016-05-23 23:07:08 UTC) #9
sadrul
A couple of suggestions. Other than that, lgtm https://codereview.chromium.org/1996163002/diff/40001/content/browser/renderer_host/render_widget_host_view_aura.cc File content/browser/renderer_host/render_widget_host_view_aura.cc (right): https://codereview.chromium.org/1996163002/diff/40001/content/browser/renderer_host/render_widget_host_view_aura.cc#newcode2502 content/browser/renderer_host/render_widget_host_view_aura.cc:2502: window_->GetBoundsInRootWindow().IsEmpty()) ...
4 years, 7 months ago (2016-05-24 16:17:39 UTC) #10
dmazzoni
https://codereview.chromium.org/1996163002/diff/40001/content/browser/renderer_host/render_widget_host_view_aura.cc File content/browser/renderer_host/render_widget_host_view_aura.cc (right): https://codereview.chromium.org/1996163002/diff/40001/content/browser/renderer_host/render_widget_host_view_aura.cc#newcode2502 content/browser/renderer_host/render_widget_host_view_aura.cc:2502: window_->GetBoundsInRootWindow().IsEmpty()) { On 2016/05/24 16:17:39, sadrul wrote: > Does ...
4 years, 7 months ago (2016-05-24 16:53:09 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1996163002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1996163002/60001
4 years, 7 months ago (2016-05-24 16:53:45 UTC) #14
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 7 months ago (2016-05-24 18:43:20 UTC) #15
commit-bot: I haz the power
4 years, 7 months ago (2016-05-24 18:44:24 UTC) #17
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/a7e78f6f5d453c52313b74de10c5f680aa3d5ee3
Cr-Commit-Position: refs/heads/master@{#395649}

Powered by Google App Engine
This is Rietveld 408576698