Bug 1583187 [wpt PR 19220] - Migrate media.mojom.ImageCapture to BrowserInterfaceBroker, a=testonly
authorMario Sanchez Prada <mario@igalia.com>
Wed, 25 Sep 2019 16:55:48 +0000
changeset 495072 b6cedbe3ed6debc5d5e3565fa89cf65aa177b8f8
parent 495071 a5706e4d8fceee80c45c6d4763d9c3ca074c3ead
child 495073 45cf739e8c38f33967ae436f9dd7e05f29af7026
push id114132
push userwptsync@mozilla.com
push dateThu, 26 Sep 2019 20:29:30 +0000
treeherdermozilla-inbound@637c32be2b54 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1583187, 19220, 955171, 978694, 936482, 1819238, 699218
milestone71.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1583187 [wpt PR 19220] - Migrate media.mojom.ImageCapture to BrowserInterfaceBroker, a=testonly Automatic update from web-platform-tests Migrate media.mojom.ImageCapture to BrowserInterfaceBroker This CL migrates code to the new BrowserInterfaceBroker class, allowing to retrieve the remote implementation from the renderer process without relying on FrameClient's InterfaceProvider. Additionally, this CL also migrates the few usages of the old Mojo types that were still around in the codebase. TBR=clamy@chromium.org Bug: 955171, 978694, 936482 Change-Id: I95d2d9ef39838a09748542c847440b060190e2f5 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1819238 Commit-Queue: Mario Sanchez Prada <mario@igalia.com> Reviewed-by: Kentaro Hara <haraken@chromium.org> Reviewed-by: Arthur Sonzogni <arthursonzogni@chromium.org> Reviewed-by: Oksana Zhuravlova <oksamyt@chromium.org> Reviewed-by: Dominick Ng <dominickn@chromium.org> Cr-Commit-Position: refs/heads/master@{#699218} -- wpt-commits: 0012a5c0ca9f54ceff9b775b73982cf766a0148d wpt-pr: 19220
testing/web-platform/tests/resources/chromium/mock-imagecapture.js
--- a/testing/web-platform/tests/resources/chromium/mock-imagecapture.js
+++ b/testing/web-platform/tests/resources/chromium/mock-imagecapture.js
@@ -1,17 +1,17 @@
 "use strict";
 
 var ImageCaptureTest = (() => {
   // Class that mocks ImageCapture interface defined in
   // https://cs.chromium.org/chromium/src/media/capture/mojom/image_capture.mojom
   class MockImageCapture {
     constructor() {
       this.interceptor_ = new MojoInterfaceInterceptor(
-        media.mojom.ImageCapture.name);
+        media.mojom.ImageCapture.name, "context", true);
       this.interceptor_.oninterfacerequest =
         e => this.bindingSet_.addBinding(this, e.handle);
       this.interceptor_.start();
 
       this.state_ = {
         state: {
           supportedWhiteBalanceModes: [
             media.mojom.MeteringMode.SINGLE_SHOT,
@@ -257,9 +257,9 @@ var ImageCaptureTest = (() => {
       await new Promise(resolve => setTimeout(resolve, 0));
     }
     mockImageCapture() {
       return testInternal.mockImageCapture;
     }
   }
 
   return ImageCaptureTestChromium;
-})();
\ No newline at end of file
+})();