|
|
Created:
6 years, 9 months ago by philipj_slow Modified:
6 years, 9 months ago Reviewers:
acolwell GONE FROM CHROMIUM CC:
blink-reviews, feature-media-reviews_chromium.org, dglazkov+blink, philipj_slow, adamk+blink_chromium.org, eric.carlson_apple.com Base URL:
svn://svn.chromium.org/blink/trunk Visibility:
Public. |
DescriptionAdd a missing null check in SliderThumbElement::stopDragging()
hostInput() is null checked in several other SliderThumbElement
functions and clearly can return null, so just handle it.
Add GCController.collect() to the test case to make the crash trigger
reliably, which was necessary in order to debug it.
BUG=356148
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=170139
Patch Set 1 #
Total comments: 4
Patch Set 2 : nits #Patch Set 3 : rebase #
Messages
Total messages: 38 (0 generated)
PTAL, and see the comments in the bug.
lgtm % nits https://codereview.chromium.org/211403003/diff/1/LayoutTests/media/audio-dele... File LayoutTests/media/audio-delete-while-slider-thumb-clicked.html (right): https://codereview.chromium.org/211403003/diff/1/LayoutTests/media/audio-dele... LayoutTests/media/audio-delete-while-slider-thumb-clicked.html:21: if (window.GCController) nit: I think you should move this into deleteAudio() since this clearly isn't a button click and it's a little confusing to have it here. Adding a comment about why you GC in some testing environments and force a click in others would be nice. https://codereview.chromium.org/211403003/diff/1/Source/core/html/shadow/Slid... File Source/core/html/shadow/SliderThumbElement.cpp (right): https://codereview.chromium.org/211403003/diff/1/Source/core/html/shadow/Slid... Source/core/html/shadow/SliderThumbElement.cpp:229: return hostInput()->matchesReadOnlyPseudoClass(); nit: Should this and the one below be protected as well?
https://codereview.chromium.org/211403003/diff/1/LayoutTests/media/audio-dele... File LayoutTests/media/audio-delete-while-slider-thumb-clicked.html (right): https://codereview.chromium.org/211403003/diff/1/LayoutTests/media/audio-dele... LayoutTests/media/audio-delete-while-slider-thumb-clicked.html:21: if (window.GCController) On 2014/03/25 22:28:57, acolwell wrote: > nit: I think you should move this into deleteAudio() since this clearly isn't a > button click and it's a little confusing to have it here. Adding a comment about > why you GC in some testing environments and force a click in others would be > nice. Ahem... this code was copied from adopt-node-crash.html, but I messed up by copying the return as well, fortunately you didn't miss it! I didn't put it in deleteAudio() because that's run in an event listener for the audio element, and the audio element cannot be collected at that point, at least not in my testing. I'll fix this by copying all of forceGC() instead, which should make things clearer. https://codereview.chromium.org/211403003/diff/1/Source/core/html/shadow/Slid... File Source/core/html/shadow/SliderThumbElement.cpp (right): https://codereview.chromium.org/211403003/diff/1/Source/core/html/shadow/Slid... Source/core/html/shadow/SliderThumbElement.cpp:229: return hostInput()->matchesReadOnlyPseudoClass(); On 2014/03/25 22:28:57, acolwell wrote: > nit: Should this and the one below be protected as well? These are only called from SelectorChecker.cpp. Probably it can never be null as the code is now, but these are overrides for Element just like isDisabledFormControl() so I guess null checks are more consistent and harmless in any case. The only remaining unchecked use is the hostInput() in SliderThumbElement::setPositionFromPoint but all the callers that I can see check isDisabledFormControl() in some way or another.
The CQ bit was checked by philipj@opera.com
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/philipj@opera.com/211403003/80001
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: tryserver.blink on win_blink_compile_dbg
The CQ bit was checked by philipj@opera.com
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/philipj@opera.com/211403003/80001
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: tryserver.blink on win_blink_rel
The CQ bit was checked by philipj@opera.com
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/philipj@opera.com/211403003/80001
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: tryserver.blink on linux_blink_dbg
The CQ bit was checked by philipj@opera.com
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/philipj@opera.com/211403003/80001
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: tryserver.blink on linux_blink_dbg
The CQ bit was checked by philipj@opera.com
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/philipj@opera.com/211403003/80001
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: tryserver.blink on linux_blink_dbg
The CQ bit was checked by philipj@opera.com
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/philipj@opera.com/211403003/80001
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: tryserver.blink on linux_blink_dbg
The CQ bit was checked by philipj@opera.com
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/philipj@opera.com/211403003/80001
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: tryserver.blink on linux_blink_dbg
The CQ bit was checked by philipj@opera.com
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/philipj@opera.com/211403003/330001
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: tryserver.blink on linux_blink_dbg
The CQ bit was checked by philipj@opera.com
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/philipj@opera.com/211403003/330001
Message was sent while issue was closed.
Change committed as 170139 |