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

Issue 1967473002: PasswordController should give up on WebState destruction (Closed)

Created:
4 years, 7 months ago by vabr (Chromium)
Modified:
4 years, 7 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@2661
Target Ref:
refs/pending/branch-heads/2661
Project:
chromium
Visibility:
Public.

Description

PasswordController should give up on WebState destruction The associated bug has a crash where a WebStateObserverBridge method of PasswordController dereferences a null pointer. The block where the dereference happens is: if (weakSelf) { weakSelf.get()->passwordManager_->OnPasswordFormSubmitted( weakSelf.get()->passwordManagerDriver_.get(), form); } It is likely that between the call to -webState:didSubmitDocumentWithFormNamed:userInitiated: and the execution of the block the WebState has been destroyed, and therefore also passwordManager_ and passwordManagerDriver_ nulled. This CL adds a BOOL to keep track of the destruction of the WebState, allowing the controller to give up when the WS is destroyed. R=eugenebut@chromium.org BUG=608090 Review-Url: https://codereview.chromium.org/1941363002 Cr-Commit-Position: refs/heads/master@{#391511} (cherry picked from commit 0e96a24352e1ed49716b86177e65b09069ed05a2) Committed: https://chromium.googlesource.com/chromium/src/+/cd8df42aec73937c97c837299d3d4673b6535d79

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -1 line) Patch
M ios/chrome/browser/passwords/password_controller.mm View 4 chunks +11 lines, -1 line 0 comments Download

Messages

Total messages: 2 (1 generated)
vabr (Chromium)
4 years, 7 months ago (2016-05-10 07:46:47 UTC) #2
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
cd8df42aec73937c97c837299d3d4673b6535d79.

Powered by Google App Engine
This is Rietveld 408576698