New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 778201 link

Starred by 1 user

Issue metadata

Status: Verified
Owner:
Email to this user bounced
Closed: Nov 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Android , Windows , Chrome , Mac
Pri: 3
Type: Bug



Sign in to add a comment

[sensor] An outdated reading is reported on repeated start

Project Member Reported by mikhail....@intel.com, Oct 25 2017

Issue description

Steps to reproduce:
1) cache the reading values of an activated sensor object
2) stop the sensor object
3) wait a while
4) start the object again
5) the first newly received reading values from the object still remain the same as the cached ones
 
Project Member

Comment 1 by bugdroid1@chromium.org, Oct 26 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/8678634068c94d355e5e9357ba339f6559c01acf

commit 8678634068c94d355e5e9357ba339f6559c01acf
Author: Mikhail Pozdnyakov <mikhail.pozdnyakov@intel.com>
Date: Thu Oct 26 16:17:06 2017

[Sensors] Clear reading cache after all the sensor instances are stopped

Otherwise a sensor object when it starts again can report an outdated reading.

Bug:  778201 
Change-Id: I7df365099e06e5fe92e708d049e6c81443f02d96
Reviewed-on: https://chromium-review.googlesource.com/738174
Reviewed-by: Reilly Grant <reillyg@chromium.org>
Reviewed-by: Alexander Shalamov <alexander.shalamov@intel.com>
Commit-Queue: Mikhail Pozdnyakov <mikhail.pozdnyakov@intel.com>
Cr-Commit-Position: refs/heads/master@{#511838}
[modify] https://crrev.com/8678634068c94d355e5e9357ba339f6559c01acf/third_party/WebKit/LayoutTests/sensor/resources/generic-sensor-tests.js
[modify] https://crrev.com/8678634068c94d355e5e9357ba339f6559c01acf/third_party/WebKit/Source/modules/sensor/Sensor.cpp
[modify] https://crrev.com/8678634068c94d355e5e9357ba339f6559c01acf/third_party/WebKit/Source/modules/sensor/SensorProxy.cpp

Status: Verified (was: Started)

Sign in to add a comment