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

Issue 2728683007: Fix crash when de-referencing the WebFrameWidget. (Closed)

Created:
3 years, 9 months ago by lfg
Modified:
3 years, 9 months ago
Reviewers:
dcheng
CC:
chromium-reviews, blink-reviews, kinuko+watch
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix crash when de-referencing the WebFrameWidget. This change adds a null check before de-referencing the main frame. This fixes a race where the main frame is swapped while there is a in-flight request to lock the mouse. BUG=697421 Review-Url: https://codereview.chromium.org/2728683007 Cr-Commit-Position: refs/heads/master@{#455027} Committed: https://chromium.googlesource.com/chromium/src/+/4d8296ca0eee12ba5876ea0cafde76e0f8359981

Patch Set 1 #

Total comments: 2

Patch Set 2 : add comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -3 lines) Patch
M third_party/WebKit/Source/web/WebViewImpl.cpp View 1 1 chunk +11 lines, -3 lines 0 comments Download

Messages

Total messages: 22 (15 generated)
lfg
Daniel, please take a look.
3 years, 9 months ago (2017-03-03 19:15:17 UTC) #4
dcheng
lgtm https://codereview.chromium.org/2728683007/diff/1/third_party/WebKit/Source/web/WebViewImpl.cpp File third_party/WebKit/Source/web/WebViewImpl.cpp (right): https://codereview.chromium.org/2728683007/diff/1/third_party/WebKit/Source/web/WebViewImpl.cpp#newcode2549 third_party/WebKit/Source/web/WebViewImpl.cpp:2549: if (mainFrameImpl()) Please add some comments here too ...
3 years, 9 months ago (2017-03-03 23:57:24 UTC) #7
lfg
https://codereview.chromium.org/2728683007/diff/1/third_party/WebKit/Source/web/WebViewImpl.cpp File third_party/WebKit/Source/web/WebViewImpl.cpp (right): https://codereview.chromium.org/2728683007/diff/1/third_party/WebKit/Source/web/WebViewImpl.cpp#newcode2549 third_party/WebKit/Source/web/WebViewImpl.cpp:2549: if (mainFrameImpl()) On 2017/03/03 23:57:24, dcheng wrote: > Please ...
3 years, 9 months ago (2017-03-06 21:31:01 UTC) #12
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/2728683007/20001
3 years, 9 months ago (2017-03-06 21:31:51 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: android_n5x_swarming_rel on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_n5x_swarming_rel/builds/131638)
3 years, 9 months ago (2017-03-06 22:24:50 UTC) #17
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/2728683007/20001
3 years, 9 months ago (2017-03-07 02:33:08 UTC) #19
commit-bot: I haz the power
3 years, 9 months ago (2017-03-07 03:04:58 UTC) #22
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/4d8296ca0eee12ba5876ea0cafde...

Powered by Google App Engine
This is Rietveld 408576698