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

Issue 2519333007: <webview> Fix crash when closing chrome://chrome-signin (Closed)

Created:
4 years ago by avallee
Modified:
4 years ago
CC:
chromium-reviews, jam, nasko+codewatch_chromium.org, darin-cc_chromium.org, creis+watch_chromium.org, lfg
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

<webview> Fix crash when closing chrome://chrome-signin This fixes a browser crash with OOPIF-based webviews. When two instances of chrome://chrome-signin are opened in browser tabs, closing either one of them leads to a crash. The embedding WebContentsImpl in its destructor will attempt to update screen rects for child WebContentsImpl. The children will fail to locate their parent due to their node Id not being kInvalid despite the node no longer existing (destroyed earlier in the parent WebContentsImpl dtor). ~ No longer notify children about screen rect changes when being destroyed. + Add regression test. BUG=667708 Committed: https://crrev.com/9f43b0110e3e4b47064b067fecc30ca2ce2c193e Cr-Commit-Position: refs/heads/master@{#434570}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Only run test on Win/Max/Linux (Chromeos does not implement chrome://chrome-signin) #

Patch Set 3 : Address creis@ comment. #

Patch Set 4 : OS_LINUX always true when OS_CHROMEOS, excluse OS_CHROMEOS #

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

Messages

Total messages: 26 (19 generated)
avallee
creis@chromium.org or nasko@chromium.org: content/ wjmaclean@chromium.org: chrome/
4 years ago (2016-11-23 21:01:56 UTC) #4
Charlie Reis
Thanks! content/ LGTM. (I'll defer to wjmaclean on the test details.) https://codereview.chromium.org/2519333007/diff/1/chrome/browser/apps/guest_view/web_view_browsertest.cc File chrome/browser/apps/guest_view/web_view_browsertest.cc (right): ...
4 years ago (2016-11-23 23:45:24 UTC) #5
avallee
PTAL. https://codereview.chromium.org/2519333007/diff/1/chrome/browser/apps/guest_view/web_view_browsertest.cc File chrome/browser/apps/guest_view/web_view_browsertest.cc (right): https://codereview.chromium.org/2519333007/diff/1/chrome/browser/apps/guest_view/web_view_browsertest.cc#newcode3865 chrome/browser/apps/guest_view/web_view_browsertest.cc:3865: class ChromeSignInWebViewTest : public WebViewTestBase { On 2016/11/23 ...
4 years ago (2016-11-24 17:53:58 UTC) #11
wjmaclean
lgtm
4 years ago (2016-11-24 21:36:58 UTC) #19
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/2519333007/60001
4 years ago (2016-11-26 05:31:26 UTC) #22
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years ago (2016-11-26 07:03:03 UTC) #24
commit-bot: I haz the power
4 years ago (2016-11-26 07:05:24 UTC) #26
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/9f43b0110e3e4b47064b067fecc30ca2ce2c193e
Cr-Commit-Position: refs/heads/master@{#434570}

Powered by Google App Engine
This is Rietveld 408576698