Bug 1646636 - Disable devtools.contenttoolbox.fission in inspector tests for frames + context menu r=ochameau,perftest-reviewers,sparky

Differential Revision: https://phabricator.services.mozilla.com/D80503
This commit is contained in:
Julian Descottes 2020-06-23 13:26:06 +00:00
parent 9a7127a8e1
commit 426d07f236
2 changed files with 11 additions and 4 deletions

View File

@ -19,10 +19,11 @@ const HTML = `
const TEST_URI = "data:text/html;charset=utf-8," + encodeURI(HTML);
add_task(async function() {
Services.prefs.setBoolPref("devtools.command-button-frames.enabled", true);
registerCleanupFunction(() => {
Services.prefs.clearUserPref("devtools.command-button-frames.enabled");
});
await pushPref("devtools.command-button-frames.enabled", true);
// Nested same-process iframes are broken with Fission +
// contenttoolbox.fission. See Bug 1647366.
await pushPref("devtools.contenttoolbox.fission", false);
const tab = await addTab(TEST_URI);
const testActor = await getTestActorWithoutToolbox(tab);

View File

@ -4,6 +4,7 @@
"use strict";
const Services = require("Services");
const {
reloadInspectorAndLog,
selectNodeFront,
@ -23,6 +24,10 @@ const { gDevTools } = require("devtools/client/framework/devtools");
const TEST_URL = PAGES_BASE_URL + "custom/inspector/index.html";
module.exports = async function() {
// Nested same-process iframes are broken with Fission +
// contenttoolbox.fission. See Bug 1647366.
Services.prefs.setBoolPref("devtools.contenttoolbox.fission", false);
const tab = await testSetup(TEST_URL, { disableCache: true });
const domReference = await getContentDOMReference("#initial-node", tab);
@ -43,6 +48,7 @@ module.exports = async function() {
await new Promise(r => setTimeout(r, 1000));
await garbageCollect();
Services.prefs.clearUserPref("devtools.contenttoolbox.fission");
await testTeardown();
};