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

Issue 2646613002: ShowCreatedWindow: some speculative fixes for 680876. (Closed)

Created:
3 years, 11 months ago by ncarter (slow)
Modified:
3 years, 11 months ago
Reviewers:
alexmos
CC:
chromium-reviews, jam, nasko+codewatch_chromium.org, darin-cc_chromium.org, creis+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

ShowCreatedWindow: some speculative fixes for 680876. Bug 678399 is an android-only crash in WebContentsImpl::ShowCreatedWindow, that seems to have started with recent changes to CreateNewWindow. The root cause of this issue is not understood, but one possible explanation is that the |pending_contents_| list winds up tracking a dead WebContents. This CL adds some defensive code aimed at either catching a problem earlier, or papering over it. BUG=680876 Review-Url: https://codereview.chromium.org/2646613002 Cr-Commit-Position: refs/heads/master@{#444939} Committed: https://chromium.googlesource.com/chromium/src/+/76ac066a7ca9091e4b45b459e1d46f413614a1e1

Patch Set 1 #

Patch Set 2 : Add a CHECK #

Total comments: 6

Patch Set 3 : Switch to DWOC. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -2 lines) Patch
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 chunks +10 lines, -2 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 22 (13 generated)
ncarter (slow)
alexmos, please review (assuming this compiles and goes green)
3 years, 11 months ago (2017-01-18 21:24:53 UTC) #4
alexmos
LGTM but I think the right bug for this is 680876, not 678399? This seems ...
3 years, 11 months ago (2017-01-18 23:23:47 UTC) #7
ncarter (slow)
https://codereview.chromium.org/2646613002/diff/20001/content/browser/web_contents/web_contents_impl.cc File content/browser/web_contents/web_contents_impl.cc (right): https://codereview.chromium.org/2646613002/diff/20001/content/browser/web_contents/web_contents_impl.cc#newcode2224 content/browser/web_contents/web_contents_impl.cc:2224: if (contents && contents->GetMainFrame()->GetRenderWidgetHost() == rwh) { On 2017/01/18 ...
3 years, 11 months ago (2017-01-18 23:59:16 UTC) #8
alexmos
https://codereview.chromium.org/2646613002/diff/20001/content/browser/web_contents/web_contents_impl.cc File content/browser/web_contents/web_contents_impl.cc (right): https://codereview.chromium.org/2646613002/diff/20001/content/browser/web_contents/web_contents_impl.cc#newcode2224 content/browser/web_contents/web_contents_impl.cc:2224: if (contents && contents->GetMainFrame()->GetRenderWidgetHost() == rwh) { On 2017/01/18 ...
3 years, 11 months ago (2017-01-19 01:25:21 UTC) #9
ncarter (slow)
https://codereview.chromium.org/2646613002/diff/20001/content/browser/web_contents/web_contents_impl.cc File content/browser/web_contents/web_contents_impl.cc (right): https://codereview.chromium.org/2646613002/diff/20001/content/browser/web_contents/web_contents_impl.cc#newcode2221 content/browser/web_contents/web_contents_impl.cc:2221: return; On 2017/01/18 23:23:47, alexmos (OOO on 1-20) wrote: ...
3 years, 11 months ago (2017-01-19 22:04:49 UTC) #13
alexmos
LGTM
3 years, 11 months ago (2017-01-19 23:40:48 UTC) #16
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/2646613002/40001
3 years, 11 months ago (2017-01-19 23:51:32 UTC) #18
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://chromium.googlesource.com/chromium/src/+/76ac066a7ca9091e4b45b459e1d46f413614a1e1
3 years, 11 months ago (2017-01-20 01:53:32 UTC) #21
ncarter (slow)
3 years, 10 months ago (2017-02-02 22:55:47 UTC) #22
Message was sent while issue was closed.
A revert of this CL (patchset #3 id:40001) has been created in
https://codereview.chromium.org/2672933002/ by nick@chromium.org.

The reason for reverting is: Reverting speculative instrumentation which is no
longer necessary, based on our understanding of the crash..

Powered by Google App Engine
This is Rietveld 408576698