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

Issue 72283002: winaura: Do not create WindowObservers for BrowserPlugin. (Closed)

Created:
7 years, 1 month ago by lazyboy
Modified:
7 years, 1 month ago
Reviewers:
jam
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

winaura: Do not create WindowObservers for BrowserPlugin. WindowObserver is not necessary for BrowserPlugin. Moreover, if BrowserPlugin navigates to an Interstitial page, tearing down its embedder causes a crash b/c it tries to cast the Interstitial's WC's view to WCViewAura, which actually is a WCViewGuest. The ToRenderWidgetHostViewAura does not work in this scenario because the RWH's process points to Interstitial's RenderProcess, whose IsGuest() is false. The simpler fix hence is to get rid of WindowObserver for BrowserPlugin. This will also fix a flaky test on windows: WebViewTest.InterstitialTeardown. BUG=316298, 297014 Test=On Windows Aura, load an app with a <webview> pointing to a page that shows an interstitial, e.g. try navigating to https://test.com. After the interstitial is visible, close the app. The fix would make the browser not crash. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=235600

Patch Set 1 #

Total comments: 5

Patch Set 2 : Address nit. #

Patch Set 3 : revert dcheck for guest, TouchEditingClient uses the method #

Patch Set 4 : Fix test name. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -8 lines) Patch
M chrome/browser/apps/web_view_browsertest.cc View 1 2 3 1 chunk +1 line, -7 lines 0 comments Download
M content/browser/web_contents/web_contents_view_aura.cc View 1 2 1 chunk +7 lines, -1 line 0 comments Download

Messages

Total messages: 9 (0 generated)
lazyboy
7 years, 1 month ago (2013-11-14 03:21:58 UTC) #1
jam
lgtm https://codereview.chromium.org/72283002/diff/1/content/browser/web_contents/web_contents_view_aura.cc File content/browser/web_contents/web_contents_view_aura.cc (right): https://codereview.chromium.org/72283002/diff/1/content/browser/web_contents/web_contents_view_aura.cc#newcode101 content/browser/web_contents/web_contents_view_aura.cc:101: DCHECK(!process->IsGuest()); is this dcheck conclusive? i.e. can we ...
7 years, 1 month ago (2013-11-14 17:42:15 UTC) #2
lazyboy
https://codereview.chromium.org/72283002/diff/1/content/browser/web_contents/web_contents_view_aura.cc File content/browser/web_contents/web_contents_view_aura.cc (right): https://codereview.chromium.org/72283002/diff/1/content/browser/web_contents/web_contents_view_aura.cc#newcode101 content/browser/web_contents/web_contents_view_aura.cc:101: DCHECK(!process->IsGuest()); On 2013/11/14 17:42:15, jam wrote: > is this ...
7 years, 1 month ago (2013-11-14 19:04:50 UTC) #3
lazyboy
Can you take another quick look? Thanks. https://chromiumcodereview.appspot.com/72283002/diff/1/content/browser/web_contents/web_contents_view_aura.cc File content/browser/web_contents/web_contents_view_aura.cc (right): https://chromiumcodereview.appspot.com/72283002/diff/1/content/browser/web_contents/web_contents_view_aura.cc#newcode101 content/browser/web_contents/web_contents_view_aura.cc:101: DCHECK(!process->IsGuest()); On ...
7 years, 1 month ago (2013-11-14 21:34:54 UTC) #4
jam
lgtm
7 years, 1 month ago (2013-11-15 17:37:43 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/lazyboy@chromium.org/72283002/200001
7 years, 1 month ago (2013-11-15 17:55:50 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/lazyboy@chromium.org/72283002/200001
7 years, 1 month ago (2013-11-15 22:28:21 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/lazyboy@chromium.org/72283002/200001
7 years, 1 month ago (2013-11-16 01:16:22 UTC) #8
commit-bot: I haz the power
7 years, 1 month ago (2013-11-18 04:11:11 UTC) #9
Message was sent while issue was closed.
Change committed as 235600

Powered by Google App Engine
This is Rietveld 408576698