fix: update preferences in default Firefox profile (#6465)
This commit is contained in:
parent
9275653130
commit
41ef3eec90
@ -519,7 +519,7 @@ class FirefoxLauncher implements ProductLauncher {
|
||||
// https://bugzilla.mozilla.org/show_bug.cgi?id=1543115
|
||||
'browser.dom.window.dump.enabled': true,
|
||||
// Disable topstories
|
||||
'browser.newtabpage.activity-stream.feeds.section.topstories': false,
|
||||
'browser.newtabpage.activity-stream.feeds.system.topstories': false,
|
||||
// Always display a blank page
|
||||
'browser.newtabpage.enabled': false,
|
||||
// Background thumbnails in particular cause grief: and disabling
|
||||
@ -566,16 +566,15 @@ class FirefoxLauncher implements ProductLauncher {
|
||||
// Do not warn on quitting Firefox
|
||||
'browser.warnOnQuit': false,
|
||||
|
||||
// Do not show datareporting policy notifications which can
|
||||
// interfere with tests
|
||||
'datareporting.healthreport.about.reportUrl': `http://${server}/dummy/abouthealthreport/`,
|
||||
// Defensively disable data reporting systems
|
||||
'datareporting.healthreport.documentServerURI': `http://${server}/dummy/healthreport/`,
|
||||
'datareporting.healthreport.logging.consoleEnabled': false,
|
||||
'datareporting.healthreport.service.enabled': false,
|
||||
'datareporting.healthreport.service.firstRun': false,
|
||||
'datareporting.healthreport.uploadEnabled': false,
|
||||
|
||||
// Do not show datareporting policy notifications which can interfere with tests
|
||||
'datareporting.policy.dataSubmissionEnabled': false,
|
||||
'datareporting.policy.dataSubmissionPolicyAccepted': false,
|
||||
'datareporting.policy.dataSubmissionPolicyBypassNotification': true,
|
||||
|
||||
// DevTools JSONViewer sometimes fails to load dependencies with its require.js.
|
||||
@ -688,8 +687,6 @@ class FirefoxLauncher implements ProductLauncher {
|
||||
// Disable browser animations (tabs, fullscreen, sliding alerts)
|
||||
'toolkit.cosmeticAnimations.enabled': false,
|
||||
|
||||
// We want to collect telemetry, but we don't want to send in the results
|
||||
'toolkit.telemetry.server': `https://${server}/dummy/telemetry/`,
|
||||
// Prevent starting into safe mode after application crashes
|
||||
'toolkit.startup.max_resumed_crashes': -1,
|
||||
};
|
||||
|
@ -129,18 +129,15 @@ describe('waittask specs', function () {
|
||||
await page.evaluate(() => (globalThis.__FOO = 1));
|
||||
await watchdog;
|
||||
});
|
||||
itFailsFirefox(
|
||||
'should work when resolved right before execution context disposal',
|
||||
async () => {
|
||||
const { page } = getTestState();
|
||||
it('should work when resolved right before execution context disposal', async () => {
|
||||
const { page } = getTestState();
|
||||
|
||||
await page.evaluateOnNewDocument(() => (globalThis.__RELOADED = true));
|
||||
await page.waitForFunction(() => {
|
||||
if (!globalThis.__RELOADED) window.location.reload();
|
||||
return true;
|
||||
});
|
||||
}
|
||||
);
|
||||
await page.evaluateOnNewDocument(() => (globalThis.__RELOADED = true));
|
||||
await page.waitForFunction(() => {
|
||||
if (!globalThis.__RELOADED) window.location.reload();
|
||||
return true;
|
||||
});
|
||||
});
|
||||
it('should poll on interval', async () => {
|
||||
const { page } = getTestState();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user