1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-20 15:18:08 +02:00

Disable new tab page stuff in Firefox when running tests

It should help to have such a garbage in the logs:
```
console.warn: TopSitesFeed: Failed to fetch data from Contile server: NetworkError when attempting to fetch resource.
JavaScript error: , line 0: TypeError: NetworkError when attempting to fetch resource.
```
This commit is contained in:
Calixte Denizet 2024-07-01 16:20:04 +02:00
parent 8556a26390
commit efb45a705e

View file

@ -946,6 +946,8 @@ async function startBrowser({
"dom.events.asyncClipboard.clipboardItem": true,
// It's helpful to see where the caret is.
"accessibility.browsewithcaret": true,
// Disable the newtabpage stuff.
"browser.newtabpage.enabled": false,
...extraPrefsFirefox,
};
}