[MediaStream] add navigator.getUserMedia for compatibility with legacy content
authoreric.carlson@apple.com <eric.carlson@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 14 Feb 2017 22:34:48 +0000 (22:34 +0000)
committereric.carlson@apple.com <eric.carlson@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 14 Feb 2017 22:34:48 +0000 (22:34 +0000)
commit053f627192ff85648914c27ed1578baf9494c208
tree5d2d08e7294f722d90af8ae1dc644f11ac89bb2a
parent19ac7eeb3182a10864d2bac5fc08a60da501d390
[MediaStream] add navigator.getUserMedia for compatibility with legacy content
https://bugs.webkit.org/show_bug.cgi?id=168324
<rdar://problem/30513125>

Reviewed by Youenn Fablet.

Source/WebCore:

Tests: fast/mediastream/argument-types.html
       fast/mediastream/getusermedia.html
       fast/mediastream/webkitGetUserMedia-shadowing-then.html

* CMakeLists.txt:
* DerivedSources.cpp:
* DerivedSources.make:
* Modules/mediastream/MediaDevices.idl:
* Modules/mediastream/NavigatorUserMedia.idl: Added.
* Modules/mediastream/NavigatorUserMedia.js: Added.
* WebCore.xcodeproj/project.pbxproj:
* bindings/js/WebCoreBuiltinNames.h:
* page/Navigator.idl:

Source/WebInspectorUI:

* UserInterface/Models/NativeFunctionParameters.js:

LayoutTests:

* fast/mediastream/argument-types-expected.txt:
* fast/mediastream/argument-types.html: Added.
* fast/mediastream/getusermedia-expected.txt:
* fast/mediastream/getusermedia.html: Added.
* fast/mediastream/script-tests/argument-types.js: Added.
* fast/mediastream/webkitGetUserMedia-shadowing-then.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@212323 268f45cc-cd09-0410-ab3c-d52691b4dbfc
20 files changed:
LayoutTests/ChangeLog
LayoutTests/fast/dom/navigator-detached-no-crash.html
LayoutTests/fast/mediastream/argument-types-expected.txt
LayoutTests/fast/mediastream/argument-types.html [new file with mode: 0644]
LayoutTests/fast/mediastream/getusermedia-expected.txt
LayoutTests/fast/mediastream/getusermedia.html [new file with mode: 0644]
LayoutTests/fast/mediastream/script-tests/argument-types.js [new file with mode: 0644]
LayoutTests/fast/mediastream/webkitGetUserMedia-shadowing-then.html [new file with mode: 0644]
Source/WebCore/CMakeLists.txt
Source/WebCore/ChangeLog
Source/WebCore/DerivedSources.cpp
Source/WebCore/DerivedSources.make
Source/WebCore/Modules/mediastream/MediaDevices.idl
Source/WebCore/Modules/mediastream/NavigatorUserMedia.idl [new file with mode: 0644]
Source/WebCore/Modules/mediastream/NavigatorUserMedia.js [new file with mode: 0644]
Source/WebCore/WebCore.xcodeproj/project.pbxproj
Source/WebCore/bindings/js/WebCoreBuiltinNames.h
Source/WebCore/page/Navigator.idl
Source/WebInspectorUI/ChangeLog
Source/WebInspectorUI/UserInterface/Models/NativeFunctionParameters.js