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

Issue 2850813004: Add a nullptr check in blink::RequestCallbacks::onSuccess to fix crash. (Closed)

Created:
3 years, 7 months ago by vasilii
Modified:
3 years, 7 months ago
Reviewers:
Mike West
CC:
blink-reviews, chromium-reviews, haraken
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Add a nullptr check in blink::RequestCallbacks::onSuccess to fix crash. Apparently the crash is happening in blink::Document::GetFrame() because Document* is NULL. BUG=706294 Review-Url: https://codereview.chromium.org/2850813004 Cr-Commit-Position: refs/heads/master@{#468952} Committed: https://chromium.googlesource.com/chromium/src/+/656ba920a74cb5e83d65712d1f97b3cdde335197

Patch Set 1 #

Patch Set 2 : add test #

Patch Set 3 : includes #

Total comments: 2

Patch Set 4 : fix the test #

Patch Set 5 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+81 lines, -4 lines) Patch
M third_party/WebKit/Source/modules/BUILD.gn View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/credentialmanager/CredentialsContainer.h View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/credentialmanager/CredentialsContainer.cpp View 1 2 3 4 1 chunk +5 lines, -3 lines 0 comments Download
A third_party/WebKit/Source/modules/credentialmanager/CredentialsContainerTest.cpp View 1 2 3 1 chunk +73 lines, -0 lines 0 comments Download

Messages

Total messages: 29 (20 generated)
vasilii
Hi Mike, please review.
3 years, 7 months ago (2017-04-28 16:21:23 UTC) #4
Mike West
Code change LGTM. Can you add a test that verifies the behavior?
3 years, 7 months ago (2017-05-02 07:07:28 UTC) #7
vasilii
please review again.
3 years, 7 months ago (2017-05-02 16:05:38 UTC) #9
Mike West
Thanks for adding the test. LGTM once the ASAN bot is happy. https://codereview.chromium.org/2850813004/diff/40001/third_party/WebKit/Source/modules/credentialmanager/CredentialsContainer.cpp File third_party/WebKit/Source/modules/credentialmanager/CredentialsContainer.cpp ...
3 years, 7 months ago (2017-05-03 07:54:31 UTC) #17
vasilii
https://codereview.chromium.org/2850813004/diff/40001/third_party/WebKit/Source/modules/credentialmanager/CredentialsContainer.cpp File third_party/WebKit/Source/modules/credentialmanager/CredentialsContainer.cpp (right): https://codereview.chromium.org/2850813004/diff/40001/third_party/WebKit/Source/modules/credentialmanager/CredentialsContainer.cpp#newcode95 third_party/WebKit/Source/modules/credentialmanager/CredentialsContainer.cpp:95: return; On 2017/05/03 07:54:31, Mike West wrote: > I ...
3 years, 7 months ago (2017-05-03 09:05:20 UTC) #18
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/2850813004/60001
3 years, 7 months ago (2017-05-03 10:46:16 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/284728) chromeos_amd64-generic_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_FAILED, ...
3 years, 7 months ago (2017-05-03 10:49:14 UTC) #23
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/2850813004/80001
3 years, 7 months ago (2017-05-03 11:20:23 UTC) #26
commit-bot: I haz the power
3 years, 7 months ago (2017-05-03 13:08:55 UTC) #29
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/656ba920a74cb5e83d65712d1f97...

Powered by Google App Engine
This is Rietveld 408576698