DescriptionWhen firing null-events stop DeviceSensorEventController only after the event has propagated to window.
When no sensors are available chrome should fire an all-null event
into blink. However at the time of firing the active DOM objects
can be suspended or stopped, which can prohibit propagation of the
event to window. Currently the controller will be unregistered in
any case because the event is a null-event. This results in the
potential loss of null-events and the javascript callback is never
executed. To avoid this issue the firing of a null-event should
happen until it effectively propagates to window.
BUG=356750
TEST=http://jsbin.com/pivimoga/1/ (manual)
TEST=https://codereview.chromium.org/214763002/ (browsertest)
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=170200
Patch Set 1 #
Messages
Total messages: 7 (0 generated)
|