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

Issue 2417463007: Fix crash caused by stale WebContents in chrome://interstitials (Closed)

Created:
4 years, 2 months ago by meacer
Modified:
4 years, 2 months ago
Reviewers:
estark
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix crash caused by stale WebContents in chrome://interstitials InterstitialHTMLSource provides the data for this page using the wrong WebContents. This isn't a problem when the links are opened in the same tab. However, when a link is opened in a new tab, web_contents_ of IntersititalHTMLSource is assigned to the new tab. When the tab is destroyed, future data requests are made using the stale web_contents and cause a crash. Instead, simply use the WebContents provided in InterstitialHTMLSource::StartDataRequest. BUG=611706 Committed: https://crrev.com/861833fc6f49583b3fb052c6711c3733d1478a42 Cr-Commit-Position: refs/heads/master@{#425185}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -18 lines) Patch
M chrome/browser/ui/webui/interstitials/interstitial_ui.cc View 5 chunks +8 lines, -18 lines 0 comments Download

Messages

Total messages: 18 (11 generated)
meacer
estark: PTAL? Thanks.
4 years, 2 months ago (2016-10-13 19:54:57 UTC) #3
estark
lgtm but how hard would it be to write a regression test?
4 years, 2 months ago (2016-10-13 21:14:09 UTC) #8
meacer
On 2016/10/13 21:14:09, estark wrote: > lgtm but how hard would it be to write ...
4 years, 2 months ago (2016-10-13 21:18:30 UTC) #9
estark
On 2016/10/13 21:18:30, Mustafa Emre Acer wrote: > On 2016/10/13 21:14:09, estark wrote: > > ...
4 years, 2 months ago (2016-10-13 21:19:54 UTC) #10
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/2417463007/1
4 years, 2 months ago (2016-10-13 22:09:43 UTC) #14
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 2 months ago (2016-10-13 22:15:55 UTC) #16
commit-bot: I haz the power
4 years, 2 months ago (2016-10-13 22:19:20 UTC) #18
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/861833fc6f49583b3fb052c6711c3733d1478a42
Cr-Commit-Position: refs/heads/master@{#425185}

Powered by Google App Engine
This is Rietveld 408576698