Skip to content

Commit

Permalink
Merge branch 'main' into firefox-basic-auth
Browse files Browse the repository at this point in the history
  • Loading branch information
soulgalore authored Mar 13, 2024
2 parents 29b11b3 + 86aa797 commit 19614c4
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion lib/firefox/webdriver/firefox.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { isAndroidConfigured, Android } from '../../android/index.js';
import { adjustVisualProgressTimestamps } from '../../support/util.js';
import { findFiles } from '../../support/fileUtil.js';
import { GeckoProfiler } from '../geckoProfiler.js';
import { FirefoxBidi } from '../firefoxBidi.js';
import { MemoryReport } from '../memoryReport.js';
import { PerfStats } from '../perfStats.js';
import { NetworkManager } from '../networkManager.js';
Expand Down Expand Up @@ -65,6 +66,12 @@ export class Firefox {

this.bidi = await runner.getDriver().getBidi();

this.browsertimeBidi = new FirefoxBidi(
await runner.getDriver().getBidi(),
this.windowId,
runner.getDriver(),
this.options
);
}

/**
Expand All @@ -83,7 +90,7 @@ export class Firefox {
*/
async beforeStartIteration(runner) {
if (this.options.injectJs) {
await this.bidi.injectJavaScript(this.options.injectJs);
await this.browsertimeBidi.injectJavaScript(this.options.injectJs);
}

if (this.options.basicAuth) {
Expand Down

0 comments on commit 19614c4

Please sign in to comment.