DescriptionFix use-after-free in WebstoreInstaller
Crashes are still occurring in WebstoreInstaller::StartDownload(),
even after several attempts to fix them.
Diagnosis:
The installer holds a pointer to contents::NavigationController.
This object is owned by contents::WebContents, which can be deleted
before the StartDownload() callback is invoked.
Fix:
Store a pointer to contents::WebContents. Inherit from
content::WebContentsObserver, which will clear the pointer when
the WebContents are destroyed.
BUG=165634
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=250865
Patch Set 1 #
Messages
Total messages: 6 (0 generated)
|