WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
ASSIGNED
168324
[MediaStream] add navigator.getUserMedia for compatibility with legacy content
https://bugs.webkit.org/show_bug.cgi?id=168324
Summary
[MediaStream] add navigator.getUserMedia for compatibility with legacy content
Eric Carlson
Reported
2017-02-14 08:42:24 PST
Implement navigator.getUserMedia as a JS built-in for compatibility with legacy content.
Attachments
Proposed patch
(45.27 KB, patch)
2017-02-14 09:04 PST
,
Eric Carlson
youennf
: review+
buildbot
: commit-queue-
Details
Formatted Diff
Diff
Archive of layout-test-results from ews101 for mac-elcapitan
(998.45 KB, application/zip)
2017-02-14 11:52 PST
,
Build Bot
no flags
Details
Archive of layout-test-results from ews117 for mac-elcapitan
(1.65 MB, application/zip)
2017-02-14 12:18 PST
,
Build Bot
no flags
Details
Archive of layout-test-results from ews107 for mac-elcapitan-wk2
(1.05 MB, application/zip)
2017-02-14 12:22 PST
,
Build Bot
no flags
Details
Patch for landing.
(45.93 KB, patch)
2017-02-14 14:10 PST
,
Eric Carlson
no flags
Details
Formatted Diff
Diff
Show Obsolete
(3)
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2017-02-14 08:43:18 PST
<
rdar://problem/30513125
>
Eric Carlson
Comment 2
2017-02-14 09:04:58 PST
Created
attachment 301510
[details]
Proposed patch
youenn fablet
Comment 3
2017-02-14 10:52:26 PST
Comment on
attachment 301510
[details]
Proposed patch View in context:
https://bugs.webkit.org/attachment.cgi?id=301510&action=review
> Source/WebCore/ChangeLog:3 > + [MediaStream] add navigator.getUserMedia for compatibility with legacy content
I am not a big fan of adding it back, but I guess wit is fine aligning to the spec.
> Source/WebCore/Modules/mediastream/MediaDevices.idl:37 > + [MayThrowException, PrivateIdentifier, PublicIdentifier] Promise<MediaStream> getUserMedia(optional MediaStreamConstraints constraints);
No need for MayThrowException I believe.
> Source/WebCore/Modules/mediastream/NavigatorUserMedia.js:33 > + // FIXME: We should raise a DOM unsupported exception if there is no navigator and properly detect whether method is not called on a Navigator object.
Ideally, we should fix that by adding @navigator to the global object and @mediaDevices to the Navigator object. Oh well...
> LayoutTests/ChangeLog:14 > + * fast/mediastream/webkitGetUserMedia-shadowing-then.html: Added.
Do we want back the disconnected test?
Build Bot
Comment 4
2017-02-14 11:52:41 PST
Comment on
attachment 301510
[details]
Proposed patch
Attachment 301510
[details]
did not pass mac-ews (mac): Output:
http://webkit-queues.webkit.org/results/3117276
New failing tests: fast/dom/navigator-detached-no-crash.html
Build Bot
Comment 5
2017-02-14 11:52:45 PST
Created
attachment 301527
[details]
Archive of layout-test-results from ews101 for mac-elcapitan The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews101 Port: mac-elcapitan Platform: Mac OS X 10.11.6
Build Bot
Comment 6
2017-02-14 12:18:26 PST
Comment on
attachment 301510
[details]
Proposed patch
Attachment 301510
[details]
did not pass mac-debug-ews (mac): Output:
http://webkit-queues.webkit.org/results/3117338
New failing tests: fast/dom/navigator-detached-no-crash.html
Build Bot
Comment 7
2017-02-14 12:18:30 PST
Created
attachment 301529
[details]
Archive of layout-test-results from ews117 for mac-elcapitan The attached test failures were seen while running run-webkit-tests on the mac-debug-ews. Bot: ews117 Port: mac-elcapitan Platform: Mac OS X 10.11.6
Build Bot
Comment 8
2017-02-14 12:22:03 PST
Comment on
attachment 301510
[details]
Proposed patch
Attachment 301510
[details]
did not pass mac-wk2-ews (mac-wk2): Output:
http://webkit-queues.webkit.org/results/3117378
New failing tests: fast/dom/navigator-detached-no-crash.html
Build Bot
Comment 9
2017-02-14 12:22:07 PST
Created
attachment 301530
[details]
Archive of layout-test-results from ews107 for mac-elcapitan-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews107 Port: mac-elcapitan-wk2 Platform: Mac OS X 10.11.6
Eric Carlson
Comment 10
2017-02-14 14:10:37 PST
Created
attachment 301545
[details]
Patch for landing.
WebKit Commit Bot
Comment 11
2017-02-14 14:36:27 PST
Comment on
attachment 301545
[details]
Patch for landing. Clearing flags on attachment: 301545 Committed
r212323
: <
http://trac.webkit.org/changeset/212323
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug