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

Issue 2934353002: Avoid use-after-free when InterstitialPageImpl is being torn down. (Closed)

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

Description

Avoid use-after-free when InterstitialPageImpl is being torn down. The InterstitialPageNavigatorImpl was continuing to access parts of a deleted WebContents (e.g., the NavigationController) after its corresponding InterstitialPageImpl was disabled. This CL avoids the problem by checking for the disabled state. BUG=730592 TEST=NavigationHandleImpl crashes go away. CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Review-Url: https://codereview.chromium.org/2934353002 Cr-Commit-Position: refs/heads/master@{#479544} Committed: https://chromium.googlesource.com/chromium/src/+/f1ead56e93a1db602c7cdcf2a569bf8e0f4a8e52

Patch Set 1 #

Patch Set 2 : Also clear NavigationController reference. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+74 lines, -1 line) Patch
M content/browser/frame_host/interstitial_page_impl.cc View 1 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/frame_host/interstitial_page_navigator_impl.h View 1 3 chunks +9 lines, -0 lines 0 comments Download
M content/browser/frame_host/interstitial_page_navigator_impl.cc View 1 4 chunks +17 lines, -1 line 0 comments Download
M content/browser/web_contents/web_contents_impl_unittest.cc View 2 chunks +44 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (10 generated)
Charlie Reis
Nick, can you take a look? I'd love to make interstitial deletion synchronous instead, but ...
3 years, 6 months ago (2017-06-14 22:22:04 UTC) #7
ncarter (slow)
lgtm
3 years, 6 months ago (2017-06-14 22:26:11 UTC) #8
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/2934353002/20001
3 years, 6 months ago (2017-06-14 22:46:16 UTC) #11
commit-bot: I haz the power
3 years, 6 months ago (2017-06-14 23:41:43 UTC) #14
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/f1ead56e93a1db602c7cdcf2a569...

Powered by Google App Engine
This is Rietveld 408576698