Improving webkitGetUserMedia error handling and error messages
authorthiago.lacerda@openbossa.org <thiago.lacerda@openbossa.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 19 Mar 2014 21:06:38 +0000 (21:06 +0000)
committerthiago.lacerda@openbossa.org <thiago.lacerda@openbossa.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 19 Mar 2014 21:06:38 +0000 (21:06 +0000)
commit3b9b1348df1c09a084031a0c594381abdb4a8bc5
tree19a87a1c0d1b0be153ddaf5552af91dd7ae68645
parentfdd2397542744425f4e0b7a1d480a52b99c66558
Improving webkitGetUserMedia error handling and error messages
https://bugs.webkit.org/show_bug.cgi?id=130452

Reviewed by Eric Carlson.

Checking if first argument of webkitGetUserMedia is a valid Dictionary. If not, throw an exception with a
clearer message of the error.

Source/WebCore:

Test updated.

* Modules/mediastream/NavigatorMediaStream.idl:
* UseJSC.cmake:
* bindings/js/JSNavigatorCustom.cpp: Added.

LayoutTests:

* fast/mediastream/argument-types-expected.txt:
* fast/mediastream/script-tests/argument-types.js:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@165915 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/mediastream/argument-types-expected.txt
LayoutTests/fast/mediastream/script-tests/argument-types.js
Source/WebCore/ChangeLog
Source/WebCore/Modules/mediastream/NavigatorMediaStream.idl
Source/WebCore/UseJSC.cmake
Source/WebCore/bindings/js/JSNavigatorCustom.cpp [new file with mode: 0644]