mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-19 00:05:36 +00:00
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:
parent
9a7127a8e1
commit
426d07f236
@ -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);
|
||||
|
@ -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();
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user