Closed Bug 815582 Opened 12 years ago Closed 12 years ago

Unsupported media types should throw a NS_ERROR_DOM_NOT_SUPPORTED_ERR

Categories

(Core :: WebRTC, defect)

19 Branch
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 773986

People

(Reporter: whimboo, Unassigned)

Details

(Whiteboard: [getUserMedia])

Attachments

(1 file)

Right now it's possible to specify unsupported media types for the mozGetUserMedia() call. This should not be possible. Instead a 'NS_ERROR_DOM_NOT_SUPPORTED_ERR' should be thrown.

Example:

navigator.mozGetUserMedia({foobar: true}, function (aStream) {
  // is unexpectedly called
  }, function () {});

Instead of executing the onSuccess callback an exception should be thrown. I will attach an updated version of the basic gum exception mochitest.
Attached patch mochitestSplinter Review
Attachment #685562 - Flags: review?(rjesup)
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → DUPLICATE
Attachment #685562 - Flags: review?(rjesup) → review+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: