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

Issue 2772843002: [DeviceLight] Ensure to round lux value to avoid fingerprinting risk. (Closed)

Created:
3 years, 9 months ago by timvolodine
Modified:
3 years, 7 months ago
Reviewers:
palmer, Mike West, battre
CC:
blink-reviews, chromium-reviews, haraken, mlamouri+watch-blink_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[DeviceLight] Ensure to round lux value to avoid fingerprinting risk. Make sure to only expose rounded lux values to JavaScript in order to decrease fingerprinting risk. This also ensures less frequent updates in case the lux value is of high precision. BUG=642731 TBR=mkwst@chromium.org Review-Url: https://codereview.chromium.org/2772843002 Cr-Commit-Position: refs/heads/master@{#465865} Committed: https://chromium.googlesource.com/chromium/src/+/4ce63dcc9eee16f803df5ef92d29a7c23bdb32c7

Patch Set 1 #

Patch Set 2 : add expectations #

Total comments: 2

Patch Set 3 : rebase, add todo #

Patch Set 4 : fix compile #

Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -2 lines) Patch
A third_party/WebKit/LayoutTests/ambient-light/rounded-lux-value.html View 1 1 chunk +31 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/ambient-light/rounded-lux-value-expected.txt View 1 1 chunk +10 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/device_light/DeviceLightDispatcher.cpp View 1 2 3 2 chunks +18 lines, -2 lines 0 comments Download

Messages

Total messages: 39 (26 generated)
timvolodine
3 years, 9 months ago (2017-03-23 16:37:39 UTC) #4
palmer
https://codereview.chromium.org/2772843002/diff/20001/third_party/WebKit/Source/modules/device_light/DeviceLightDispatcher.cpp File third_party/WebKit/Source/modules/device_light/DeviceLightDispatcher.cpp (right): https://codereview.chromium.org/2772843002/diff/20001/third_party/WebKit/Source/modules/device_light/DeviceLightDispatcher.cpp#newcode18 third_party/WebKit/Source/modules/device_light/DeviceLightDispatcher.cpp:18: return isinf(lux) ? lux : std::round(lux); Apologies in advance ...
3 years, 9 months ago (2017-03-23 19:00:19 UTC) #8
battre
LGTM but exposing 4 bits or 0%, 10%, 20%, ... 90%, 100% would look much ...
3 years, 9 months ago (2017-03-24 15:04:18 UTC) #9
timvolodine
Yes agree with the comments that further reduced precision might be better, however this is ...
3 years, 8 months ago (2017-04-20 01:34:30 UTC) #22
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/2772843002/60001
3 years, 8 months ago (2017-04-20 01:35:17 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/415949)
3 years, 8 months ago (2017-04-20 01:44:54 UTC) #27
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/2772843002/60001
3 years, 8 months ago (2017-04-20 02:14:42 UTC) #31
commit-bot: I haz the power
Committed patchset #4 (id:60001) as https://chromium.googlesource.com/chromium/src/+/4ce63dcc9eee16f803df5ef92d29a7c23bdb32c7
3 years, 8 months ago (2017-04-20 02:20:47 UTC) #34
battre
On 2017/04/20 01:34:30, timvolodine (OOO) wrote: > Yes agree with the comments that further reduced ...
3 years, 8 months ago (2017-04-20 09:00:27 UTC) #35
palmer
> According to https://en.wikipedia.org/wiki/Daylight, bright sunlight is up to 120,000 lux (~1 lux during cloudy ...
3 years, 8 months ago (2017-04-20 19:21:55 UTC) #36
timvolodine
On 2017/04/20 19:21:55, palmer wrote: > > According to https://en.wikipedia.org/wiki/Daylight, bright sunlight is up to ...
3 years, 7 months ago (2017-05-10 17:46:43 UTC) #37
battre
On 2017/05/10 17:46:43, timvolodine wrote: > On 2017/04/20 19:21:55, palmer wrote: > > > According ...
3 years, 7 months ago (2017-05-11 09:29:18 UTC) #38
timvolodine
3 years, 7 months ago (2017-05-11 15:04:15 UTC) #39
Message was sent while issue was closed.
On 2017/05/11 09:29:18, battre wrote:
> On 2017/05/10 17:46:43, timvolodine wrote:
> > On 2017/04/20 19:21:55, palmer wrote:
> > > > According to https://en.wikipedia.org/wiki/Daylight, bright sunlight is
up
> > to
> > > 120,000 lux (~1 lux during cloudy days). At the same time, night
illuminance
> > go
> > > down to 0.01 lux or a quarter moon. So this means the this CL added little
> > > privacy protection during the day and broke the API for dark rooms. Or am
I
> > > missing something?
> > > > 
> > > > I think that we need a logarithmic scale that we divide into N steps.
> > > 
> > > +1. Or, should I say, +2**0.
> > 
> > I've commented on the bug with details, just reiterating here FYI the
> > DeviceLight implementation has been removed recently. Hopefully the
> > suggestions/discussion can continue in the context of generic sensors..
> 
> Do you have a launch blocking issue for this already?

ok I've reopened the bug as it is still relevant for the Ambient Light Sensor +
added more people on it

Powered by Google App Engine
This is Rietveld 408576698