diff --git a/browser/base/content/test/webrtc/browser_devices_get_user_media_multi_process.js b/browser/base/content/test/webrtc/browser_devices_get_user_media_multi_process.js index 935940ae84d2..358cbf78b2c9 100644 --- a/browser/base/content/test/webrtc/browser_devices_get_user_media_multi_process.js +++ b/browser/base/content/test/webrtc/browser_devices_get_user_media_multi_process.js @@ -89,7 +89,7 @@ var gTests = [ await BrowserTestUtils.removeTab(tab); // Check that we still show the sharing indicators for the first tab's stream. - await promiseWaitForCondition(() => !webrtcUI.showCameraIndicator); + await TestUtils.waitForCondition(() => !webrtcUI.showCameraIndicator); ok(webrtcUI.showGlobalIndicator, "webrtcUI wants the global indicator shown"); ok(!webrtcUI.showCameraIndicator, "webrtcUI wants the camera indicator hidden"); ok(webrtcUI.showMicrophoneIndicator, "webrtcUI wants the mic indicator shown"); @@ -192,7 +192,7 @@ var gTests = [ await BrowserTestUtils.removeTab(tab); // Check that we still show the sharing indicators for the first tab's stream. - await promiseWaitForCondition(() => webrtcUI.showCameraIndicator); + await TestUtils.waitForCondition(() => webrtcUI.showCameraIndicator); ok(webrtcUI.showGlobalIndicator, "webrtcUI wants the global indicator shown"); ok(webrtcUI.showCameraIndicator, "webrtcUI wants the camera indicator shown"); ok(!webrtcUI.showMicrophoneIndicator, "webrtcUI wants the mic indicator hidden");