Skip to content

Commit

Permalink
Disable new tab page stuff in Firefox when running tests
Browse files Browse the repository at this point in the history
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.
```
  • Loading branch information
calixteman committed Jul 1, 2024
1 parent 8556a26 commit efb45a7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
}
Expand Down

0 comments on commit efb45a7

Please sign in to comment.