зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1714426 - Disable bfcache in parent for the currently failing tests, r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D116768
This commit is contained in:
Родитель
5dc84ace8f
Коммит
f0114836f9
|
@ -21,6 +21,12 @@ async function waitForUrl(url, toolbox, browserTab, win) {
|
|||
|
||||
// Test that ensures the remote page can go forward and back via UI buttons
|
||||
add_task(async function() {
|
||||
// Disable bfcache for Fission for now.
|
||||
// If Fission is disabled, the pref is no-op.
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [["fission.bfcacheInParent", false]],
|
||||
});
|
||||
|
||||
const browserTab = await addTab(ORIGINAL_URL);
|
||||
|
||||
const { document, tab, window } = await openAboutDebugging();
|
||||
|
|
|
@ -12,6 +12,12 @@ const NEW_TAB_URL = `data:text/html,<title>${NEW_TAB_TITLE}</title>`;
|
|||
* the specified URL.
|
||||
*/
|
||||
add_task(async function() {
|
||||
// Disable bfcache for Fission for now.
|
||||
// If Fission is disabled, the pref is no-op.
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [["fission.bfcacheInParent", false]],
|
||||
});
|
||||
|
||||
const { document, tab, window } = await openAboutDebugging();
|
||||
|
||||
info("Open a new background tab.");
|
||||
|
|
|
@ -5,6 +5,12 @@
|
|||
// Test hovering in a script that is paused on load
|
||||
// and doesn't have functions.
|
||||
add_task(async function() {
|
||||
// Disable bfcache for Fission for now.
|
||||
// If Fission is disabled, the pref is no-op.
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [["fission.bfcacheInParent", false]],
|
||||
});
|
||||
|
||||
const dbg = await initDebugger("doc-scripts.html");
|
||||
|
||||
const onNavigated = navigate(dbg, "doc-on-load.html");
|
||||
|
|
|
@ -8,6 +8,12 @@
|
|||
// then removing and adding a watchpoint during the same pause
|
||||
|
||||
add_task(async function() {
|
||||
// Disable bfcache for Fission for now.
|
||||
// If Fission is disabled, the pref is no-op.
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [["fission.bfcacheInParent", false]],
|
||||
});
|
||||
|
||||
const dbg = await initDebugger("doc-sources.html");
|
||||
|
||||
// Do not await for navigation as an early breakpoint pauses the document load
|
||||
|
|
|
@ -2,6 +2,12 @@
|
|||
* http://creativecommons.org/publicdomain/zero/1.0/ */
|
||||
|
||||
add_task(async function() {
|
||||
// Disable bfcache for Fission for now.
|
||||
// If Fission is disabled, the pref is no-op.
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [["fission.bfcacheInParent", false]],
|
||||
});
|
||||
|
||||
gBrowser.selectedTab = BrowserTestUtils.addTab(gBrowser);
|
||||
await BrowserTestUtils.browserLoaded(gBrowser.selectedBrowser);
|
||||
|
||||
|
|
|
@ -19,6 +19,12 @@ Services.scriptloader.loadSubScript(
|
|||
);
|
||||
|
||||
add_task(async function testMultipleNavigations() {
|
||||
// Disable bfcache for Fission for now.
|
||||
// If Fission is disabled, the pref is no-op.
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [["fission.bfcacheInParent", false]],
|
||||
});
|
||||
|
||||
info(
|
||||
"Test that DevTools works fine after multiple backward/forward navigations"
|
||||
);
|
||||
|
@ -68,6 +74,12 @@ add_task(async function testMultipleNavigations() {
|
|||
});
|
||||
|
||||
add_task(async function testSingleBackAndForthInstantNavigation() {
|
||||
// Disable bfcache for Fission for now.
|
||||
// If Fission is disabled, the pref is no-op.
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [["fission.bfcacheInParent", false]],
|
||||
});
|
||||
|
||||
info(
|
||||
"Test that DevTools works fine after navigating backward and forward right after"
|
||||
);
|
||||
|
|
|
@ -15,6 +15,12 @@ const TEST_URI = `http://example.org/document-builder.sjs?html=<meta charset=utf
|
|||
const { Toolbox } = require("devtools/client/framework/toolbox");
|
||||
|
||||
add_task(async function() {
|
||||
// Disable bfcache for Fission for now.
|
||||
// If Fission is disabled, the pref is no-op.
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [["fission.bfcacheInParent", false]],
|
||||
});
|
||||
|
||||
// Make sure we start the test with the split console disabled.
|
||||
// ⚠️ In this test it's important to _not_ enable the console.
|
||||
await pushPref("devtools.toolbox.splitconsoleEnabled", false);
|
||||
|
|
|
@ -8,6 +8,12 @@ const EXAMPLE_NET_URI =
|
|||
"http://example.net/document-builder.sjs?html=<div id=net>net";
|
||||
|
||||
add_task(async function() {
|
||||
// Disable bfcache for Fission for now.
|
||||
// If Fission is disabled, the pref is no-op.
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [["fission.bfcacheInParent", false]],
|
||||
});
|
||||
|
||||
info("Test with server side target switching ENABLED");
|
||||
await pushPref("devtools.target-switching.server.enabled", true);
|
||||
await testCase();
|
||||
|
|
|
@ -23,6 +23,12 @@ const TEST_URI2 = `
|
|||
`;
|
||||
|
||||
add_task(async function() {
|
||||
// Disable bfcache for Fission for now.
|
||||
// If Fission is disabled, the pref is no-op.
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [["fission.bfcacheInParent", false]],
|
||||
});
|
||||
|
||||
await addTab("data:text/html;charset=utf-8," + encodeURIComponent(TEST_URI1));
|
||||
|
||||
startTelemetry();
|
||||
|
|
|
@ -32,6 +32,12 @@ const OTHER_URI = `
|
|||
`;
|
||||
|
||||
add_task(async function() {
|
||||
// Disable bfcache for Fission for now.
|
||||
// If Fission is disabled, the pref is no-op.
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [["fission.bfcacheInParent", false]],
|
||||
});
|
||||
|
||||
await addTab("data:text/html;charset=utf-8," + encodeURIComponent(TEST_URI));
|
||||
const { gridInspector, inspector } = await openLayoutView();
|
||||
const { document: doc } = gridInspector;
|
||||
|
|
|
@ -31,6 +31,12 @@ const TEST_URI = `
|
|||
`;
|
||||
|
||||
add_task(async function() {
|
||||
// Disable bfcache for Fission for now.
|
||||
// If Fission is disabled, the pref is no-op.
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [["fission.bfcacheInParent", false]],
|
||||
});
|
||||
|
||||
await pushPref("devtools.gridinspector.maxHighlighters", 3);
|
||||
await addTab("data:text/html;charset=utf-8," + encodeURIComponent(TEST_URI));
|
||||
const { gridInspector, inspector } = await openLayoutView();
|
||||
|
|
|
@ -24,6 +24,12 @@ const OTHER_URI = `
|
|||
`;
|
||||
|
||||
add_task(async function() {
|
||||
// Disable bfcache for Fission for now.
|
||||
// If Fission is disabled, the pref is no-op.
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [["fission.bfcacheInParent", false]],
|
||||
});
|
||||
|
||||
await addTab("data:text/html;charset=utf-8," + encodeURIComponent(TEST_URI));
|
||||
|
||||
info("Check that the flexbox highlighter can be displayed.");
|
||||
|
|
|
@ -31,6 +31,12 @@ const OTHER_URI = `
|
|||
`;
|
||||
|
||||
add_task(async function() {
|
||||
// Disable bfcache for Fission for now.
|
||||
// If Fission is disabled, the pref is no-op.
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [["fission.bfcacheInParent", false]],
|
||||
});
|
||||
|
||||
await addTab("data:text/html;charset=utf-8," + encodeURIComponent(TEST_URI));
|
||||
|
||||
info("Check that the grid highlighter can be displayed");
|
||||
|
|
|
@ -49,6 +49,12 @@ const TEST_URL =
|
|||
`);
|
||||
|
||||
add_task(async function() {
|
||||
// Disable bfcache for Fission for now.
|
||||
// If Fission is disabled, the pref is no-op.
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [["fission.bfcacheInParent", false]],
|
||||
});
|
||||
|
||||
info("Open the inspector to a blank page.");
|
||||
const { inspector, testActor } = await openInspectorForURL("about:blank");
|
||||
|
||||
|
|
|
@ -11,6 +11,12 @@ const TEST_URL_2 =
|
|||
"data:text/html;charset=utf-8,<h1 style='color:red'>HTML test page</h1>";
|
||||
|
||||
add_task(async function() {
|
||||
// Disable bfcache for Fission for now.
|
||||
// If Fission is disabled, the pref is no-op.
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [["fission.bfcacheInParent", false]],
|
||||
});
|
||||
|
||||
const { inspector } = await openInspectorForURL(TEST_URL);
|
||||
|
||||
info("Check the inspector toolbar");
|
||||
|
|
|
@ -23,6 +23,12 @@ const TEST_URI =
|
|||
"</svg>";
|
||||
|
||||
add_task(async function() {
|
||||
// Disable bfcache for Fission for now.
|
||||
// If Fission is disabled, the pref is no-op.
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [["fission.bfcacheInParent", false]],
|
||||
});
|
||||
|
||||
const { inspector } = await openInspectorForURL(TEST_URI);
|
||||
|
||||
const markupLoaded = inspector.once("markuploaded");
|
||||
|
|
|
@ -8,6 +8,12 @@
|
|||
const TEST_URL = URL_ROOT + "doc_inspector_remove-iframe-during-load.html";
|
||||
|
||||
add_task(async function() {
|
||||
// Disable bfcache for Fission for now.
|
||||
// If Fission is disabled, the pref is no-op.
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [["fission.bfcacheInParent", false]],
|
||||
});
|
||||
|
||||
const { inspector, tab } = await openInspectorForURL("about:blank");
|
||||
await selectNode("body", inspector);
|
||||
|
||||
|
|
|
@ -54,6 +54,12 @@ var TEST_DATA = [
|
|||
];
|
||||
|
||||
add_task(async function() {
|
||||
// Disable bfcache for Fission for now.
|
||||
// If Fission is disabled, the pref is no-op.
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [["fission.bfcacheInParent", false]],
|
||||
});
|
||||
|
||||
const { inspector } = await openInspectorForURL(PAGE_1);
|
||||
|
||||
for (const { url, nodeToSelect, selectedNode } of TEST_DATA) {
|
||||
|
|
|
@ -34,6 +34,12 @@ const TEST_URL =
|
|||
"</html>";
|
||||
|
||||
add_task(async function() {
|
||||
// Disable bfcache for Fission for now.
|
||||
// If Fission is disabled, the pref is no-op.
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [["fission.bfcacheInParent", false]],
|
||||
});
|
||||
|
||||
const { inspector, tab } = await openInspectorForURL("about:blank");
|
||||
|
||||
const domContentLoaded = waitForLinkedBrowserEvent(tab, "DOMContentLoaded");
|
||||
|
|
|
@ -13,6 +13,12 @@ const EXPECTED_ELEMENT_IN_PARENT_PROCESS = "button";
|
|||
const EXPECTED_ELEMENT_IN_CONTENT_PROCESS = "section";
|
||||
|
||||
add_task(async () => {
|
||||
// Disable bfcache for Fission for now.
|
||||
// If Fission is disabled, the pref is no-op.
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [["fission.bfcacheInParent", false]],
|
||||
});
|
||||
|
||||
info("Open the memory panel with empty page");
|
||||
const tab = await addTab();
|
||||
const { panel } = await openMemoryPanel(tab);
|
||||
|
|
|
@ -8,6 +8,12 @@
|
|||
*/
|
||||
|
||||
add_task(async function() {
|
||||
// Disable bfcache for Fission for now.
|
||||
// If Fission is disabled, the pref is no-op.
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [["fission.bfcacheInParent", false]],
|
||||
});
|
||||
|
||||
const { tab, monitor } = await initNetMonitor(SIMPLE_URL, {
|
||||
requestCount: 1,
|
||||
});
|
||||
|
|
|
@ -8,6 +8,12 @@
|
|||
*/
|
||||
|
||||
add_task(async function() {
|
||||
// Disable bfcache for Fission for now.
|
||||
// If Fission is disabled, the pref is no-op.
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [["fission.bfcacheInParent", false]],
|
||||
});
|
||||
|
||||
class DataTransfer {
|
||||
constructor() {
|
||||
this.BLOCKING_URL =
|
||||
|
|
|
@ -8,6 +8,12 @@
|
|||
*/
|
||||
|
||||
add_task(async function() {
|
||||
// Disable bfcache for Fission for now.
|
||||
// If Fission is disabled, the pref is no-op.
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [["fission.bfcacheInParent", false]],
|
||||
});
|
||||
|
||||
const { tab, monitor } = await initNetMonitor(SIMPLE_URL, {
|
||||
requestCount: 1,
|
||||
});
|
||||
|
|
|
@ -13,6 +13,12 @@ const CAUSE_URL = EXAMPLE_URL + CAUSE_FILE_NAME;
|
|||
const N_EXPECTED_REQUESTS = 4;
|
||||
|
||||
add_task(async function() {
|
||||
// Disable bfcache for Fission for now.
|
||||
// If Fission is disabled, the pref is no-op.
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [["fission.bfcacheInParent", false]],
|
||||
});
|
||||
|
||||
// the initNetMonitor function clears the network request list after the
|
||||
// page is loaded. That's why we first load a bogus page from SIMPLE_URL,
|
||||
// and only then load the real thing from CAUSE_URL - we want to catch
|
||||
|
|
|
@ -8,6 +8,12 @@
|
|||
*/
|
||||
|
||||
add_task(async function() {
|
||||
// Disable bfcache for Fission for now.
|
||||
// If Fission is disabled, the pref is no-op.
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [["fission.bfcacheInParent", false]],
|
||||
});
|
||||
|
||||
const { monitor } = await initNetMonitor(SIMPLE_URL, { requestCount: 1 });
|
||||
|
||||
info("Starting test... ");
|
||||
|
|
|
@ -9,6 +9,12 @@
|
|||
*/
|
||||
|
||||
add_task(async function() {
|
||||
// Disable bfcache for Fission for now.
|
||||
// If Fission is disabled, the pref is no-op.
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [["fission.bfcacheInParent", false]],
|
||||
});
|
||||
|
||||
const { L10N } = require("devtools/client/netmonitor/src/utils/l10n");
|
||||
|
||||
const { monitor } = await initNetMonitor(SIMPLE_URL, { requestCount: 1 });
|
||||
|
|
|
@ -8,6 +8,12 @@
|
|||
*/
|
||||
|
||||
add_task(async function() {
|
||||
// Disable bfcache for Fission for now.
|
||||
// If Fission is disabled, the pref is no-op.
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [["fission.bfcacheInParent", false]],
|
||||
});
|
||||
|
||||
const { L10N } = require("devtools/client/netmonitor/src/utils/l10n");
|
||||
|
||||
const { monitor } = await initNetMonitor(SIMPLE_URL, { requestCount: 1 });
|
||||
|
|
|
@ -9,6 +9,12 @@
|
|||
*/
|
||||
|
||||
add_task(async function() {
|
||||
// Disable bfcache for Fission for now.
|
||||
// If Fission is disabled, the pref is no-op.
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [["fission.bfcacheInParent", false]],
|
||||
});
|
||||
|
||||
const { L10N } = require("devtools/client/netmonitor/src/utils/l10n");
|
||||
|
||||
const { monitor } = await initNetMonitor(SIMPLE_URL, { requestCount: 1 });
|
||||
|
|
|
@ -8,6 +8,12 @@
|
|||
*/
|
||||
|
||||
add_task(async function() {
|
||||
// Disable bfcache for Fission for now.
|
||||
// If Fission is disabled, the pref is no-op.
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [["fission.bfcacheInParent", false]],
|
||||
});
|
||||
|
||||
const { L10N } = require("devtools/client/netmonitor/src/utils/l10n");
|
||||
|
||||
const { monitor } = await initNetMonitor(SIMPLE_URL, { requestCount: 1 });
|
||||
|
|
|
@ -8,6 +8,12 @@
|
|||
*/
|
||||
|
||||
add_task(async function() {
|
||||
// Disable bfcache for Fission for now.
|
||||
// If Fission is disabled, the pref is no-op.
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [["fission.bfcacheInParent", false]],
|
||||
});
|
||||
|
||||
const { L10N } = require("devtools/client/netmonitor/src/utils/l10n");
|
||||
|
||||
const { monitor } = await initNetMonitor(SIMPLE_URL, { requestCount: 1 });
|
||||
|
|
|
@ -8,6 +8,12 @@
|
|||
*/
|
||||
|
||||
add_task(async function() {
|
||||
// Disable bfcache for Fission for now.
|
||||
// If Fission is disabled, the pref is no-op.
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [["fission.bfcacheInParent", false]],
|
||||
});
|
||||
|
||||
const { L10N } = require("devtools/client/netmonitor/src/utils/l10n");
|
||||
|
||||
const { monitor } = await initNetMonitor(SIMPLE_URL, { requestCount: 1 });
|
||||
|
|
|
@ -7,6 +7,12 @@
|
|||
* Test showing/hiding columns.
|
||||
*/
|
||||
add_task(async function() {
|
||||
// Disable bfcache for Fission for now.
|
||||
// If Fission is disabled, the pref is no-op.
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [["fission.bfcacheInParent", false]],
|
||||
});
|
||||
|
||||
const { monitor } = await initNetMonitor(SIMPLE_URL, { requestCount: 1 });
|
||||
info("Starting test... ");
|
||||
|
||||
|
|
|
@ -8,6 +8,12 @@
|
|||
*/
|
||||
|
||||
add_task(async function() {
|
||||
// Disable bfcache for Fission for now.
|
||||
// If Fission is disabled, the pref is no-op.
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [["fission.bfcacheInParent", false]],
|
||||
});
|
||||
|
||||
const { monitor } = await initNetMonitor(SIMPLE_URL, { requestCount: 1 });
|
||||
info("Starting test... ");
|
||||
|
||||
|
|
|
@ -10,6 +10,12 @@
|
|||
*/
|
||||
|
||||
add_task(async function() {
|
||||
// Disable bfcache for Fission for now.
|
||||
// If Fission is disabled, the pref is no-op.
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [["fission.bfcacheInParent", false]],
|
||||
});
|
||||
|
||||
const { monitor } = await initNetMonitor(SIMPLE_URL, { requestCount: 1 });
|
||||
info("Starting test... ");
|
||||
|
||||
|
|
|
@ -133,6 +133,12 @@ const EXPECTED_REQUESTS = [
|
|||
];
|
||||
|
||||
add_task(async function() {
|
||||
// Disable bfcache for Fission for now.
|
||||
// If Fission is disabled, the pref is no-op.
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [["fission.bfcacheInParent", false]],
|
||||
});
|
||||
|
||||
// the initNetMonitor function clears the network request list after the
|
||||
// page is loaded. That's why we first load a bogus page from SIMPLE_URL,
|
||||
// and only then load the real thing from INITIATOR_URL - we want to catch
|
||||
|
|
|
@ -9,6 +9,12 @@ const ALL_CHANNELS = Ci.nsITelemetry.DATASET_ALL_CHANNELS;
|
|||
* Test the edit_resend telemetry event.
|
||||
*/
|
||||
add_task(async function() {
|
||||
// Disable bfcache for Fission for now.
|
||||
// If Fission is disabled, the pref is no-op.
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [["fission.bfcacheInParent", false]],
|
||||
});
|
||||
|
||||
const { monitor } = await initNetMonitor(SIMPLE_URL, { requestCount: 1 });
|
||||
info("Starting test... ");
|
||||
|
||||
|
|
|
@ -9,6 +9,12 @@ const ALL_CHANNELS = Ci.nsITelemetry.DATASET_ALL_CHANNELS;
|
|||
* Test the filters_changed telemetry event.
|
||||
*/
|
||||
add_task(async function() {
|
||||
// Disable bfcache for Fission for now.
|
||||
// If Fission is disabled, the pref is no-op.
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [["fission.bfcacheInParent", false]],
|
||||
});
|
||||
|
||||
const { monitor } = await initNetMonitor(SIMPLE_URL, { requestCount: 1 });
|
||||
info("Starting test... ");
|
||||
|
||||
|
|
|
@ -9,6 +9,12 @@ const ALL_CHANNELS = Ci.nsITelemetry.DATASET_ALL_CHANNELS;
|
|||
* Test the sidepanel_changed telemetry event.
|
||||
*/
|
||||
add_task(async function() {
|
||||
// Disable bfcache for Fission for now.
|
||||
// If Fission is disabled, the pref is no-op.
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [["fission.bfcacheInParent", false]],
|
||||
});
|
||||
|
||||
const { monitor } = await initNetMonitor(SIMPLE_URL, { requestCount: 1 });
|
||||
info("Starting test... ");
|
||||
|
||||
|
|
|
@ -48,6 +48,12 @@ const EXPECTED_REQUESTS = {
|
|||
};
|
||||
|
||||
add_task(async function() {
|
||||
// Disable bfcache for Fission for now.
|
||||
// If Fission is disabled, the pref is no-op.
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [["fission.bfcacheInParent", false]],
|
||||
});
|
||||
|
||||
// Load a different URL first to instantiate the network monitor before we
|
||||
// load the page we're really interested in.
|
||||
const { monitor } = await initNetMonitor(SIMPLE_URL, { requestCount: 1 });
|
||||
|
|
|
@ -83,6 +83,12 @@ const EXPECTED_REQUESTS = [
|
|||
];
|
||||
|
||||
add_task(async function() {
|
||||
// Disable bfcache for Fission for now.
|
||||
// If Fission is disabled, the pref is no-op.
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [["fission.bfcacheInParent", false]],
|
||||
});
|
||||
|
||||
// Load a different URL first to instantiate the network monitor before we
|
||||
// load the page we're really interested in.
|
||||
const { monitor } = await initNetMonitor(SIMPLE_URL, { requestCount: 1 });
|
||||
|
|
|
@ -13,6 +13,12 @@ const DUMMY_3_URL = "http://example.com/browser/devtools/";
|
|||
addRDMTask(
|
||||
null,
|
||||
async function() {
|
||||
// Disable bfcache for Fission for now.
|
||||
// If Fission is disabled, the pref is no-op.
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [["fission.bfcacheInParent", false]],
|
||||
});
|
||||
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [["browser.navigation.requireUserInteraction", false]],
|
||||
});
|
||||
|
|
|
@ -10,6 +10,12 @@ const EMPTY_TEST_URL = TEST_BASE_HTTP + "doc_empty.html";
|
|||
const TEST_URL = TEST_BASE_HTTP + "doc_fetch_from_netmonitor.html";
|
||||
|
||||
add_task(async function() {
|
||||
// Disable bfcache for Fission for now.
|
||||
// If Fission is disabled, the pref is no-op.
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [["fission.bfcacheInParent", false]],
|
||||
});
|
||||
|
||||
info("Opening netmonitor");
|
||||
// Navigate first to an empty document in order to:
|
||||
// * avoid introducing a cross process navigation when calling navigateTo()
|
||||
|
|
|
@ -33,6 +33,12 @@ const TEST_URI = `data:text/html;charset=utf-8,
|
|||
<body>Autocomplete popup - invoke getter cache test</body>`;
|
||||
|
||||
add_task(async function() {
|
||||
// Disable bfcache for Fission for now.
|
||||
// If Fission is disabled, the pref is no-op.
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [["fission.bfcacheInParent", false]],
|
||||
});
|
||||
|
||||
const hud = await openNewTabAndConsole(TEST_URI);
|
||||
const { jsterm } = hud;
|
||||
const { autocompletePopup } = jsterm;
|
||||
|
|
|
@ -89,6 +89,12 @@ const TESTS = [
|
|||
];
|
||||
|
||||
add_task(async function() {
|
||||
// Disable bfcache for Fission for now.
|
||||
// If Fission is disabled, the pref is no-op.
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [["fission.bfcacheInParent", false]],
|
||||
});
|
||||
|
||||
requestLongerTimeout(2);
|
||||
|
||||
await pushPref("devtools.webconsole.filter.css", true);
|
||||
|
|
|
@ -24,6 +24,12 @@ registerCleanupFunction(async function() {
|
|||
});
|
||||
|
||||
add_task(async function task() {
|
||||
// Disable bfcache for Fission for now.
|
||||
// If Fission is disabled, the pref is no-op.
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [["fission.bfcacheInParent", false]],
|
||||
});
|
||||
|
||||
info("Add an empty tab and open the console");
|
||||
const hud = await openNewTabAndConsole("");
|
||||
|
||||
|
|
|
@ -34,6 +34,12 @@ async function logAndAssertInitialMessages(hud) {
|
|||
}
|
||||
|
||||
add_task(async function() {
|
||||
// Disable bfcache for Fission for now.
|
||||
// If Fission is disabled, the pref is no-op.
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [["fission.bfcacheInParent", false]],
|
||||
});
|
||||
|
||||
info("Testing that messages disappear on a refresh if logs aren't persisted");
|
||||
const hud = await openNewTabAndConsole(TEST_COM_URI);
|
||||
|
||||
|
@ -66,6 +72,12 @@ add_task(async function() {
|
|||
});
|
||||
|
||||
add_task(async function() {
|
||||
// Disable bfcache for Fission for now.
|
||||
// If Fission is disabled, the pref is no-op.
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [["fission.bfcacheInParent", false]],
|
||||
});
|
||||
|
||||
info("Testing that messages persist on a refresh if logs are persisted");
|
||||
|
||||
const hud = await openNewTabAndConsole(TEST_COM_URI);
|
||||
|
|
|
@ -13,6 +13,12 @@ const TEST_URI1 = "http://example.com/" + BASE_URI;
|
|||
const TEST_URI2 = "http://example.org/" + BASE_URI;
|
||||
|
||||
add_task(async function() {
|
||||
// Disable bfcache for Fission for now.
|
||||
// If Fission is disabled, the pref is no-op.
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [["fission.bfcacheInParent", false]],
|
||||
});
|
||||
|
||||
await pushPref("devtools.webconsole.persistlog", false);
|
||||
|
||||
const hud = await openNewTabAndConsole(TEST_URI1);
|
||||
|
|
|
@ -18,6 +18,12 @@ const TEST_URI = `data:text/html;charset=utf-8,<p>Web Console test for scroll.<
|
|||
</script>
|
||||
`;
|
||||
add_task(async function() {
|
||||
// Disable bfcache for Fission for now.
|
||||
// If Fission is disabled, the pref is no-op.
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [["fission.bfcacheInParent", false]],
|
||||
});
|
||||
|
||||
const hud = await openNewTabAndConsole(TEST_URI);
|
||||
const { ui } = hud;
|
||||
const outputContainer = ui.outputNode.querySelector(".webconsole-output");
|
||||
|
|
|
@ -26,6 +26,12 @@ const PAGE_URL = `data:text/html,
|
|||
</html>`;
|
||||
|
||||
add_task(async function() {
|
||||
// Disable bfcache for Fission for now.
|
||||
// If Fission is disabled, the pref is no-op.
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [["fission.bfcacheInParent", false]],
|
||||
});
|
||||
|
||||
await pushPref("devtools.source-map.client-service.enabled", true);
|
||||
await pushPref("devtools.webconsole.filter.css", true);
|
||||
|
||||
|
|
|
@ -16,6 +16,12 @@ const TEST_URI =
|
|||
const STUB_FILE = "cssMessage.js";
|
||||
|
||||
add_task(async function() {
|
||||
// Disable bfcache for Fission for now.
|
||||
// If Fission is disabled, the pref is no-op.
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [["fission.bfcacheInParent", false]],
|
||||
});
|
||||
|
||||
const isStubsUpdate = env.get(STUBS_UPDATE_ENV) == "true";
|
||||
info(`${isStubsUpdate ? "Update" : "Check"} ${STUB_FILE}`);
|
||||
|
||||
|
|
|
@ -6,6 +6,12 @@
|
|||
const TEST_RELOAD_URL = `${URL_ROOT}/inspectedwindow-reload-target.sjs`;
|
||||
|
||||
async function setup(pageUrl) {
|
||||
// Disable bfcache for Fission for now.
|
||||
// If Fission is disabled, the pref is no-op.
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [["fission.bfcacheInParent", false]],
|
||||
});
|
||||
|
||||
const extension = ExtensionTestUtils.loadExtension({
|
||||
background() {
|
||||
// This is just an empty extension used to ensure that the caller extension uuid
|
||||
|
|
|
@ -14,6 +14,12 @@
|
|||
* an empty page.
|
||||
*/
|
||||
add_task(async function() {
|
||||
// Disable bfcache for Fission for now.
|
||||
// If Fission is disabled, the pref is no-op.
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [["fission.bfcacheInParent", false]],
|
||||
});
|
||||
|
||||
// Open a test tab
|
||||
const tab = await addTab("data:text/html,Root Node tests");
|
||||
|
||||
|
@ -69,6 +75,12 @@ add_task(async function() {
|
|||
* Test that the watchRootNode API provides the expected node fronts.
|
||||
*/
|
||||
add_task(async function testRootNodeFrontIsCorrect() {
|
||||
// Disable bfcache for Fission for now.
|
||||
// If Fission is disabled, the pref is no-op.
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [["fission.bfcacheInParent", false]],
|
||||
});
|
||||
|
||||
const tab = await addTab("data:text/html,<div id=div1>");
|
||||
|
||||
const { client, resourceCommand, targetCommand } = await initResourceCommand(
|
||||
|
|
|
@ -8,6 +8,12 @@ const TEST_DOCUMENT = "target_configuration_test_doc.sjs";
|
|||
const TEST_URI = URL_ROOT_COM_SSL + TEST_DOCUMENT;
|
||||
|
||||
add_task(async function() {
|
||||
// Disable bfcache for Fission for now.
|
||||
// If Fission is disabled, the pref is no-op.
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [["fission.bfcacheInParent", false]],
|
||||
});
|
||||
|
||||
// Disable click hold and double tap zooming as it might interfere with the test
|
||||
await pushPref("ui.click_hold_context_menus", false);
|
||||
await pushPref("apz.allow_double_tap_zooming", false);
|
||||
|
|
|
@ -10,6 +10,12 @@ const IFRAME_URL = URL_ROOT_ORG_SSL + "fission_iframe.html";
|
|||
const SECOND_PAGE_URL = "https://example.org/document-builder.sjs?html=org";
|
||||
|
||||
add_task(async function() {
|
||||
// Disable bfcache for Fission for now.
|
||||
// If Fission is disabled, the pref is no-op.
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [["fission.bfcacheInParent", false]],
|
||||
});
|
||||
|
||||
// Enabled fission prefs
|
||||
await pushPref("devtools.browsertoolbox.fission", true);
|
||||
// Disable the preloaded process as it gets created lazily and may interfere
|
||||
|
|
Загрузка…
Ссылка в новой задаче