mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
chore(juggler): Roll Firefox to 120450a2 (#3842)
This patch:
- rebaselines C++ patchset atop of [Global Firefox Reformat](https://bugzilla.mozilla.org/show_bug.cgi?id=1511181)
- rolls firefox to [120450a2](120450a2c5)
- splits out preference installation step from Puppeteer-Firefox's
`install.js` into a separate
`puppeteer-firefox/misc/install-preferences.js`. This script is
re-used to install preferences when run with a custom executable path.
- fixes issue with ScrollbarManager that was re-injecting the same
stylesheet multiple times
This commit is contained in:
@@ -28,12 +28,17 @@ module.exports.addTests = ({testRunner, product, puppeteer}) => testRunner.descr
|
||||
toBeGolden: GoldenUtils.compare.bind(null, GOLDEN_DIR, OUTPUT_DIR)
|
||||
});
|
||||
|
||||
beforeAll(state => {
|
||||
|
||||
beforeAll(async state => {
|
||||
state.defaultBrowserOptions = {
|
||||
handleSIGINT: false,
|
||||
dumpio: (process.env.DUMPIO || 'false').trim().toLowerCase() === 'true',
|
||||
executablePath: product === 'chromium' ? process.env.CHROME : process.env.FFOX,
|
||||
dumpio: !!process.env.DUMPIO,
|
||||
args: product === 'chromium' ? ['--no-sandbox'] : [],
|
||||
};
|
||||
if (product === 'firefox' && state.defaultBrowserOptions.executablePath) {
|
||||
await require('../misc/install-preferences')(state.defaultBrowserOptions.executablePath);
|
||||
}
|
||||
});
|
||||
afterAll(state => {
|
||||
state.defaultBrowserOptions = undefined;
|
||||
|
||||
Reference in New Issue
Block a user