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

Issue 298683002: navigator.vibrate() crash avoidance when in a detached state. (Closed)

Created:
6 years, 7 months ago by sof
Modified:
6 years, 7 months ago
CC:
blink-reviews, mvanouwerkerk+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

navigator.vibrate() crash avoidance when in a detached state. If the frame isn't present, gracefully return. R=mvanouwerkerk@chromium.org,haraken@chromium.org BUG=375004 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=174380

Patch Set 1 #

Total comments: 2

Patch Set 2 : Rephrase null check #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -0 lines) Patch
A + LayoutTests/vibration/resources/vibration-detached-no-crash-new-window.html View 0 chunks +-1 lines, --1 lines 0 comments Download
A LayoutTests/vibration/vibration-detached-no-crash.html View 1 chunk +29 lines, -0 lines 0 comments Download
A + LayoutTests/vibration/vibration-detached-no-crash-expected.txt View 1 chunk +2 lines, -1 line 0 comments Download
M Source/modules/vibration/NavigatorVibration.cpp View 1 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
sof
Please take a look. Something to check&look out for when doing Navigator supplementables.
6 years, 7 months ago (2014-05-20 10:53:48 UTC) #1
haraken
LGTM. Thanks for the test. https://codereview.chromium.org/298683002/diff/1/Source/modules/vibration/NavigatorVibration.cpp File Source/modules/vibration/NavigatorVibration.cpp (right): https://codereview.chromium.org/298683002/diff/1/Source/modules/vibration/NavigatorVibration.cpp#newcode148 Source/modules/vibration/NavigatorVibration.cpp:148: Page* page = navigator.frame() ...
6 years, 7 months ago (2014-05-20 10:56:48 UTC) #2
Michael van Ouwerkerk
lgtm, thanks Sigbjørn!
6 years, 7 months ago (2014-05-20 11:00:45 UTC) #3
sof
Thanks both for the quick reviews. https://codereview.chromium.org/298683002/diff/1/Source/modules/vibration/NavigatorVibration.cpp File Source/modules/vibration/NavigatorVibration.cpp (right): https://codereview.chromium.org/298683002/diff/1/Source/modules/vibration/NavigatorVibration.cpp#newcode148 Source/modules/vibration/NavigatorVibration.cpp:148: Page* page = ...
6 years, 7 months ago (2014-05-20 12:42:45 UTC) #4
sof
The CQ bit was checked by sigbjornf@opera.com
6 years, 7 months ago (2014-05-20 12:42:51 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sigbjornf@opera.com/298683002/20001
6 years, 7 months ago (2014-05-20 12:43:02 UTC) #6
commit-bot: I haz the power
6 years, 7 months ago (2014-05-20 13:56:44 UTC) #7
Message was sent while issue was closed.
Change committed as 174380

Powered by Google App Engine
This is Rietveld 408576698