Closed Bug 780811 Opened 12 years ago Closed 10 years ago

Passing incorrect object types into any of the mozGetUserMedia needs to cleanly type check and fail gracefully on failure

Categories

(Core :: WebRTC, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 882145
backlog parking-lot

People

(Reporter: jsmith, Unassigned)

Details

Steps: Call mozGetUserMedia with an incorrect object type for any of the parameters. Example: mozGetUserMedia(1, function() {}, function() {}); Expected: A TypeError should be thrown when an incorrect parameter is seen. Actual: Nasty-like error was thrown instead (unchecked exception): Timestamp: 8/6/2012 8:40:09 PM Error: NS_ERROR_XPC_BAD_CONVERT_JS: Could not convert JavaScript argument arg 0 [nsIDOMNavigatorUserMedia.mozGetUserMedia] Source File: file:///C:/Users/jsmith/Documents/Camera%20API/Simple%20Scratchpad.html Line: 19
Whiteboard: [getUserMedia], [blocking-gum+]
Whiteboard: [getUserMedia], [blocking-gum+] → [getUserMedia], [blocking-gum-]
Is this still correct, and if so what should we do?
backlog: --- → parking-lot
Flags: needinfo?(jib)
QA Contact: jsmith
Whiteboard: [getUserMedia], [blocking-gum-]
OBE.
Status: NEW → RESOLVED
Closed: 10 years ago
Flags: needinfo?(jib)
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.