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

Issue 2316113003: Check frame for nullptr in AutoscrollController::animate (Closed)

Created:
4 years, 3 months ago by sunyunjia
Modified:
4 years, 3 months ago
Reviewers:
bokan, dtapuska
CC:
chromium-reviews, blink-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Check frame for nullptr in AutoscrollController::animate BUG=361036 Committed: https://crrev.com/2f5ef2c20478b1c51bcde14129e3cfe3f9d2620c Cr-Commit-Position: refs/heads/master@{#417280}

Patch Set 1 #

Patch Set 2 : Complete the solution #

Patch Set 3 : Complete the solution #

Patch Set 4 : Complete the solution #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -8 lines) Patch
M third_party/WebKit/Source/core/page/AutoscrollController.cpp View 1 2 3 2 chunks +14 lines, -8 lines 1 comment Download

Messages

Total messages: 28 (22 generated)
sunyunjia
PTAL, Thanks!
4 years, 3 months ago (2016-09-08 02:38:57 UTC) #19
bokan
lgtm In the description, "check nullptr for frame" should be "check frame for nullptr"
4 years, 3 months ago (2016-09-08 14:00:09 UTC) #20
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/2316113003/60001
4 years, 3 months ago (2016-09-08 14:01:49 UTC) #23
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 3 months ago (2016-09-08 14:06:38 UTC) #25
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/2f5ef2c20478b1c51bcde14129e3cfe3f9d2620c Cr-Commit-Position: refs/heads/master@{#417280}
4 years, 3 months ago (2016-09-08 14:09:36 UTC) #27
dtapuska
4 years, 3 months ago (2016-09-08 14:13:20 UTC) #28
Message was sent while issue was closed.
https://codereview.chromium.org/2316113003/diff/60001/third_party/WebKit/Sour...
File third_party/WebKit/Source/core/page/AutoscrollController.cpp (left):

https://codereview.chromium.org/2316113003/diff/60001/third_party/WebKit/Sour...
third_party/WebKit/Source/core/page/AutoscrollController.cpp:244: EventHandler&
eventHandler = m_autoscrollLayoutObject->frame()->eventHandler();
I was kind of anticipating a change like

LocalFrame* frame = m_autoscrollLayoutObject->frame();
if (!frame) {
  stopAutoscroll();
  return;
}
...

I think this can still cause a crash on line: 
https://cs.chromium.org/chromium/src/third_party/WebKit/Source/core/page/Auto...

whereas the way I was thinking it wouldn't. Sorry for my delay on the review.

Powered by Google App Engine
This is Rietveld 408576698