Skip to content
This repository was archived by the owner on Mar 19, 2021. It is now read-only.

Commit 9cca114

Browse files
moz-wptsync-botjgraham
authored andcommitted
Fix "MojoInterfaceInterceptor is not defined" error
which causes the promise being rejected and testharness reports error given that there are unhandled rejected promises Differential Revision: https://phabricator.services.mozilla.com/D32071 bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1525554 gecko-commit: 67cd5b8663cadce188e15fa2146bd875c17b82bd gecko-integration-branch: autoland gecko-reviewers: annevk
1 parent 7650b8b commit 9cca114

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

mediacapture-image/resources/imagecapture-helpers.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
// --enable-blink-features=MojoJS,MojoJSTest
1111

1212
let loadChromiumResources = Promise.resolve().then(() => {
13-
if (!MojoInterfaceInterceptor) {
13+
if (!('MojoInterfaceInterceptor' in self)) {
1414
// Do nothing on non-Chromium-based browsers or when the Mojo bindings are
1515
// not present in the global namespace.
1616
return;

shape-detection/resources/shapedetection-helpers.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
// --enable-blink-features=MojoJS,MojoJSTest
1111

1212
let loadChromiumResources = Promise.resolve().then(() => {
13-
if (!MojoInterfaceInterceptor) {
13+
if (!('MojoInterfaceInterceptor' in self)) {
1414
// Do nothing on non-Chromium-based browsers or when the Mojo bindings are
1515
// not present in the global namespace.
1616
return;

webxr/resources/webxr_util.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ function forEachWebxrObject(callback) {
116116

117117
// Code for loading test api in chromium.
118118
let loadChromiumResources = Promise.resolve().then(() => {
119-
if (!MojoInterfaceInterceptor) {
119+
if (!('MojoInterfaceInterceptor' in self)) {
120120
// Do nothing on non-Chromium-based browsers or when the Mojo bindings are
121121
// not present in the global namespace.
122122
return;

0 commit comments

Comments
 (0)