fix: make sure browser fetcher in launchers uses configuration (#9493)
Issue #9470
This commit is contained in:
parent
38b6b79196
commit
df554397b5
@ -4,7 +4,6 @@ import path from 'path';
|
|||||||
import {Browser} from '../api/Browser.js';
|
import {Browser} from '../api/Browser.js';
|
||||||
import {CDPBrowser} from '../common/Browser.js';
|
import {CDPBrowser} from '../common/Browser.js';
|
||||||
import {assert} from '../util/assert.js';
|
import {assert} from '../util/assert.js';
|
||||||
import {BrowserFetcher} from './BrowserFetcher.js';
|
|
||||||
import {BrowserRunner} from './BrowserRunner.js';
|
import {BrowserRunner} from './BrowserRunner.js';
|
||||||
import {
|
import {
|
||||||
BrowserLaunchArgumentOptions,
|
BrowserLaunchArgumentOptions,
|
||||||
@ -189,7 +188,7 @@ export class FirefoxLauncher extends ProductLauncher {
|
|||||||
override executablePath(): string {
|
override executablePath(): string {
|
||||||
// replace 'latest' placeholder with actual downloaded revision
|
// replace 'latest' placeholder with actual downloaded revision
|
||||||
if (this.puppeteer.browserRevision === 'latest') {
|
if (this.puppeteer.browserRevision === 'latest') {
|
||||||
const browserFetcher = new BrowserFetcher({
|
const browserFetcher = this.puppeteer.createBrowserFetcher({
|
||||||
product: this.product,
|
product: this.product,
|
||||||
path: this.puppeteer.defaultDownloadPath!,
|
path: this.puppeteer.defaultDownloadPath!,
|
||||||
});
|
});
|
||||||
|
@ -18,7 +18,6 @@ import os, {tmpdir} from 'os';
|
|||||||
import {join} from 'path';
|
import {join} from 'path';
|
||||||
import {Browser} from '../api/Browser.js';
|
import {Browser} from '../api/Browser.js';
|
||||||
import {Product} from '../common/Product.js';
|
import {Product} from '../common/Product.js';
|
||||||
import {BrowserFetcher} from './BrowserFetcher.js';
|
|
||||||
import {
|
import {
|
||||||
BrowserLaunchArgumentOptions,
|
BrowserLaunchArgumentOptions,
|
||||||
ChromeReleaseChannel,
|
ChromeReleaseChannel,
|
||||||
@ -100,7 +99,7 @@ export class ProductLauncher {
|
|||||||
return ubuntuChromiumPath;
|
return ubuntuChromiumPath;
|
||||||
}
|
}
|
||||||
|
|
||||||
const browserFetcher = new BrowserFetcher({
|
const browserFetcher = this.puppeteer.createBrowserFetcher({
|
||||||
product: this.product,
|
product: this.product,
|
||||||
path: this.puppeteer.defaultDownloadPath!,
|
path: this.puppeteer.defaultDownloadPath!,
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user