UserMediaClientMock leaks every test run
https://bugs.webkit.org/show_bug.cgi?id=149358

Reviewed by Eric Carlson.

* Modules/mediastream/UserMediaController.cpp:
(WebCore::provideUserMediaTo):
Make provideUserMediaTo operate unconditionally, just like all of the
other similar functions, reverting r165733.

* Modules/mediastream/UserMediaController.h:
* testing/Internals.cpp:
(WebCore::Internals::Internals):
Remove the existing UserMediaController supplement before installing a new one.
This way, we're replacing it with the one Internals is trying to install,
instead of leaking UserMediaClientMocks.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@190061 268f45cc-cd09-0410-ab3c-d52691b4dbfc
4 files changed