New issue
Advanced search Search tips

Issue 823636 link

Starred by 1 user

Issue metadata

Status: Duplicate
Merged: issue 823223
Owner: ----
Closed: Mar 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug



Sign in to add a comment

[sensor]TypeError should be thrown when value of SensorOptions is undefined

Reported by canx....@intel.com, Mar 20 2018

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.186 Safari/537.36

Steps to reproduce the problem:
1. Enable the 'Generic Sensor', 'Generic Sensor Extra Classes' and 'Experimental Web Platform features' in chrome://flags.
2. Debug in console on Dev tools as below:
  let a = new Accelerometer({frequency: undefined});
  let ar = new Accelerometer({referenceFrame: undefined});

What is the expected behavior?
TypeError should be thrown when value of SensorOptions is undefined 

What went wrong?
No error throw.

Did this work before? N/A 

Does this work in other browsers? N/A

Chrome version: 67.0.3397.0  Channel: canary
OS Version: 10.0
Flash Version: 

Also reproduce in case link: https://w3c-test.org/accelerometer/Accelerometer.https.html

Test Name: 
Accelerometer: throw 'TypeError' if frequency is invalid
Accelerometer: throw 'TypeError' if referenceFrame is not one of enumeration values
 
Labels: Needs-Triage-M67
Labels: Needs-Feedback Triaged-ET
Tested the issue on latest chrome version 67.0.3375.0 using Windows-10 with steps mentioned below:
1) Launched chrome reported version and enabled 'Generic Sensor', 'Generic Sensor Extra Classes' and 'Experimental Web Platform features' in chrome://flags
2) Opened Devtools > Console and entered let a = new Accelerometer({frequency: undefined}); , let ar = new Accelerometer({referenceFrame: undefined}); seen response as "undefined"

@Reporter: Please find the attached screen cast for your reference and let us know if we missed anything in reproducing the issue, if possible could you please provide the screen cast of excepted behaviour for better understanding, provide your feedback on it which helps us in further triaging it.

Thanks!


823636.mp4
4.1 MB View Download
Components: Blink>Sensor
Mergedinto: 823223
Status: Duplicate (was: Unconfirmed)

Sign in to add a comment