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

Issue 256593010: Gracefully support Navigator Gamepad methods in a detached state. (Closed)

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

Description

Gracefully support Navigator Gamepad methods in a detached state. If the frame and window of a Navigator has been detached (closed), the Navigator Gamepad methods must still continue to be available. Arrange for that to happen by allowing the Gamepad Navigator supplement to be creatable without a frame. R= BUG=355783 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=172920

Patch Set 1 #

Total comments: 3

Patch Set 2 : No longer keep a direct Document reference on DeviceSensorEventController #

Patch Set 3 : Have document supplements keep a reference to their document #

Unified diffs Side-by-side diffs Delta from patch set Stats (+94 lines, -63 lines) Patch
A + LayoutTests/gamepad/gamepad-detached-no-crash.html View 1 chunk +22 lines, -31 lines 0 comments Download
A + LayoutTests/gamepad/gamepad-detached-no-crash-expected.txt View 1 chunk +2 lines, -1 line 0 comments Download
A + LayoutTests/gamepad/resources/gamepad-detached-no-crash-new-window.html View 0 chunks +-1 lines, --1 lines 0 comments Download
M Source/core/frame/DeviceSensorEventController.h View 1 3 chunks +2 lines, -2 lines 0 comments Download
M Source/core/frame/DeviceSensorEventController.cpp View 1 2 2 chunks +6 lines, -5 lines 0 comments Download
M Source/modules/battery/BatteryManager.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M Source/modules/battery/BatteryManager.cpp View 1 2 chunks +6 lines, -1 line 0 comments Download
M Source/modules/device_orientation/DeviceMotionController.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M Source/modules/device_orientation/DeviceMotionController.cpp View 1 2 2 chunks +7 lines, -1 line 0 comments Download
M Source/modules/device_orientation/DeviceOrientationController.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M Source/modules/device_orientation/DeviceOrientationController.cpp View 1 2 2 chunks +7 lines, -1 line 0 comments Download
M Source/modules/gamepad/NavigatorGamepad.h View 1 1 chunk +12 lines, -11 lines 0 comments Download
M Source/modules/gamepad/NavigatorGamepad.cpp View 1 5 chunks +25 lines, -11 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
sof
Please take a look. (A set of clusterfuzz crashes being reported against Gamepad, I noticed.)
6 years, 8 months ago (2014-04-27 18:18:21 UTC) #1
eseidel
Adam is your best reviewer here. My vote is for whatever is simplest. If it's ...
6 years, 7 months ago (2014-04-28 15:49:54 UTC) #2
sof
On 2014/04/28 15:49:54, eseidel wrote: > Adam is your best reviewer here. My vote is ...
6 years, 7 months ago (2014-04-28 16:25:55 UTC) #3
abarth-chromium
https://codereview.chromium.org/256593010/diff/1/Source/core/frame/DeviceSensorEventController.cpp File Source/core/frame/DeviceSensorEventController.cpp (right): https://codereview.chromium.org/256593010/diff/1/Source/core/frame/DeviceSensorEventController.cpp#newcode37 Source/core/frame/DeviceSensorEventController.cpp:37: : PageLifecycleObserver(document ? document->page() : 0) Folks would then ...
6 years, 7 months ago (2014-04-28 17:58:13 UTC) #4
sof
https://codereview.chromium.org/256593010/diff/1/Source/core/frame/DeviceSensorEventController.h File Source/core/frame/DeviceSensorEventController.h (right): https://codereview.chromium.org/256593010/diff/1/Source/core/frame/DeviceSensorEventController.h#newcode65 Source/core/frame/DeviceSensorEventController.h:65: Document* m_document; On 2014/04/28 17:58:14, abarth wrote: > Maybe ...
6 years, 7 months ago (2014-04-28 18:58:41 UTC) #5
sof
On 2014/04/28 18:58:41, sof wrote: > https://codereview.chromium.org/256593010/diff/1/Source/core/frame/DeviceSensorEventController.h > File Source/core/frame/DeviceSensorEventController.h (right): > > https://codereview.chromium.org/256593010/diff/1/Source/core/frame/DeviceSensorEventController.h#newcode65 > ...
6 years, 7 months ago (2014-04-29 10:39:21 UTC) #6
abarth-chromium
lgtm
6 years, 7 months ago (2014-04-29 18:21:41 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sigbjornf@opera.com/256593010/30001
6 years, 7 months ago (2014-04-29 18:22:12 UTC) #8
commit-bot: I haz the power
6 years, 7 months ago (2014-04-30 04:30:16 UTC) #9
Message was sent while issue was closed.
Change committed as 172920

Powered by Google App Engine
This is Rietveld 408576698