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

Issue 2381913002: [sensors] Dispatch sensor events using postTask (Closed)

Created:
4 years, 2 months ago by shalamov
Modified:
4 years, 2 months ago
CC:
chromium-reviews, blink-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[sensors] Dispatch sensor events using postTask In order to avoid re-entrancy issues, this CL modifies sensor event dispatching code and uses postTask to schedule event dispatch. New test is added to ambient-light-sensor.html that checks if generic sensor code works correctly when sensor is not supported BUG=606766 Committed: https://crrev.com/28cd84c55e4fc6c1789fca46a4e23d2c4b90f517 Cr-Commit-Position: refs/heads/master@{#422761}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Rebased. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -5 lines) Patch
M third_party/WebKit/LayoutTests/sensor/ambient-light-sensor.html View 1 chunk +13 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/sensor/resources/sensor-helpers.js View 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/sensor/Sensor.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/sensor/Sensor.cpp View 1 4 chunks +23 lines, -4 lines 0 comments Download

Messages

Total messages: 26 (14 generated)
shalamov
Please take a look.
4 years, 2 months ago (2016-09-29 12:48:52 UTC) #4
Mikhail
lgtm
4 years, 2 months ago (2016-09-29 14:06:51 UTC) #7
haraken
Maybe can we use LocalDOMWindow::enqueueXXXEvent instead?
4 years, 2 months ago (2016-09-29 16:19:19 UTC) #8
shalamov
On 2016/09/29 16:19:19, haraken wrote: > Maybe can we use LocalDOMWindow::enqueueXXXEvent instead? LocalDOMWindow::enqueueXXXEvent queues events ...
4 years, 2 months ago (2016-09-30 07:03:44 UTC) #9
haraken
On 2016/09/30 07:03:44, shalamov wrote: > On 2016/09/29 16:19:19, haraken wrote: > > Maybe can ...
4 years, 2 months ago (2016-09-30 13:26:45 UTC) #10
shalamov
https://codereview.chromium.org/2381913002/diff/1/third_party/WebKit/Source/modules/sensor/Sensor.cpp File third_party/WebKit/Source/modules/sensor/Sensor.cpp (right): https://codereview.chromium.org/2381913002/diff/1/third_party/WebKit/Source/modules/sensor/Sensor.cpp#newcode269 third_party/WebKit/Source/modules/sensor/Sensor.cpp:269: createSameThreadTask(&Sensor::notifySensorReadingChanged, wrapWeakPersistent(this))); On 2016/09/30 13:26:45, haraken wrote: > > ...
4 years, 2 months ago (2016-09-30 13:51:44 UTC) #11
haraken
On 2016/09/30 13:51:44, shalamov wrote: > https://codereview.chromium.org/2381913002/diff/1/third_party/WebKit/Source/modules/sensor/Sensor.cpp > File third_party/WebKit/Source/modules/sensor/Sensor.cpp (right): > > https://codereview.chromium.org/2381913002/diff/1/third_party/WebKit/Source/modules/sensor/Sensor.cpp#newcode269 > ...
4 years, 2 months ago (2016-09-30 13:53:26 UTC) #12
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/2381913002/1
4 years, 2 months ago (2016-10-03 06:10:35 UTC) #14
commit-bot: I haz the power
Failed to apply patch for third_party/WebKit/Source/modules/sensor/Sensor.cpp: While running git apply --index -3 -p1; error: patch ...
4 years, 2 months ago (2016-10-03 07:19:55 UTC) #16
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/2381913002/20001
4 years, 2 months ago (2016-10-04 08:05:06 UTC) #23
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 2 months ago (2016-10-04 12:07:17 UTC) #24
commit-bot: I haz the power
4 years, 2 months ago (2016-10-04 12:10:51 UTC) #26
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/28cd84c55e4fc6c1789fca46a4e23d2c4b90f517
Cr-Commit-Position: refs/heads/master@{#422761}

Powered by Google App Engine
This is Rietveld 408576698