Bug 1618447, gShouldObserveSubframes should only be set for the out of process frames part of the test, r=kmag

Differential Revision: https://phabricator.services.mozilla.com/D64864

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Neil Deakin 2020-03-04 01:58:27 +00:00
Родитель 7e355a5ea5
Коммит 61f5db736f
1 изменённых файлов: 5 добавлений и 3 удалений

Просмотреть файл

@ -9,9 +9,7 @@ SpecialPowers.pushPrefEnv({
],
});
// When the frames are in different processes, add observers to each frame,
// to ensure that the notifications don't get sent in the wrong process.
const gShouldObserveSubframes = SpecialPowers.useRemoteSubframes;
let gShouldObserveSubframes = false;
var gTests = [
{
@ -582,6 +580,10 @@ add_task(async function test_inprocess() {
});
add_task(async function test_outofprocess() {
// When the frames are in different processes, add observers to each frame,
// to ensure that the notifications don't get sent in the wrong process.
gShouldObserveSubframes = SpecialPowers.useRemoteSubframes;
let observeSubFrameIds = gShouldObserveSubframes ? ["frame1", "frame2"] : [];
await runTests(gTests, {
relativeURI: "get_user_media_in_oop_frame.html",