Description[Sensors] Allow Sensor API only on secure top-level browsing contexts and add frequency checks
This patch introduces secure context and top-level browsing context checks as required at https://w3c.github.io/sensors/#construct-sensor-object.
Besides it introduces check of the given frequency option: if the given frequency is negative exception is raised; if the given frequency is more than 60 Hz it is capped to 60 Hz.
BUG=606766
Committed: https://crrev.com/eecd2806be6ab3534ca008298cc7dec9facd2c63
Cr-Commit-Position: refs/heads/master@{#421501}
Patch Set 1 #
Total comments: 8
Patch Set 2 : Review comments #
Total comments: 10
Patch Set 3 : Comments from Tim #
Total comments: 3
Messages
Total messages: 39 (23 generated)
|