Add a setting to allow the mock media capture devices to be enabled and disabled
Created attachment 267201 [details] Proposed patch.
Comment on attachment 267201 [details] Proposed patch. View in context: https://bugs.webkit.org/attachment.cgi?id=267201&action=review > Source/WebKit2/UIProcess/API/C/WKPreferences.cpp:1432 > -void WKPreferencesSetResourceUsageOverlayVisible(WKPreferencesRef preferencesRef, bool javaEnabled) > +void WKPreferencesSetResourceUsageOverlayVisible(WKPreferencesRef preferencesRef, bool enabled) > { > - toImpl(preferencesRef)->setResourceUsageOverlayVisible(javaEnabled); > + toImpl(preferencesRef)->setResourceUsageOverlayVisible(enabled); Nice! > LayoutTests/fast/mediastream/mock-media-source.html:17 > + debug(`<br>*** Disable mock capture devices`); > + if (window.internals) > + evalAndLog(`internals.setMockMediaCaptureDevicesEnabled(false)`); > + navigator.mediaDevices > + .getUserMedia({audio:{}, video:{}}) > + .then(function(stream) { > + mediaStream = stream; > + testFailed(`mediaDevices.getUserMedia() succeeded when no devices should be available`); Not a suggestion to fix, but I don't like the way the backtick looks, so I use regular quotes if I don't have any of the ${} stuff.
The commit-queue encountered the following flaky tests while processing attachment 267201 [details]: transitions/default-timing-function.html bug 138901 (author: simon.fraser@apple.com) http/tests/media/media-source/mediasource-append-buffer.html bug 152206 (author: jer.noble@apple.com) The commit-queue is continuing to process your patch.
Comment on attachment 267201 [details] Proposed patch. Clearing flags on attachment: 267201 Committed r194000: <http://trac.webkit.org/changeset/194000>
All reviewed patches have been landed. Closing bug.