browsertime 21.5.3 → 21.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/lib/firefox/webdriver/firefox.js +9 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Browsertime changelog (we do [semantic versioning](https://semver.org))
|
|
2
2
|
|
|
3
|
+
## 21.5.4 - 2024-03-13
|
|
4
|
+
### Fixed
|
|
5
|
+
* Fix for `--injectJs` for Firefox [#2103](https://github.com/sitespeedio/browsertime/pull/2103).
|
|
6
|
+
|
|
3
7
|
## 21.5.3 - 2024-03-12
|
|
4
8
|
### Fixed
|
|
5
9
|
* Fixed `commands.bidi.*` that stopped working [#2101](https://github.com/sitespeedio/browsertime/pull/2101).
|
|
@@ -10,6 +10,7 @@ import { isAndroidConfigured, Android } from '../../android/index.js';
|
|
|
10
10
|
import { adjustVisualProgressTimestamps } from '../../support/util.js';
|
|
11
11
|
import { findFiles } from '../../support/fileUtil.js';
|
|
12
12
|
import { GeckoProfiler } from '../geckoProfiler.js';
|
|
13
|
+
import { FirefoxBidi } from '../firefoxBidi.js';
|
|
13
14
|
import { MemoryReport } from '../memoryReport.js';
|
|
14
15
|
import { PerfStats } from '../perfStats.js';
|
|
15
16
|
import { NetworkManager } from '../networkManager.js';
|
|
@@ -64,6 +65,13 @@ export class Firefox {
|
|
|
64
65
|
}
|
|
65
66
|
|
|
66
67
|
this.bidi = await runner.getDriver().getBidi();
|
|
68
|
+
|
|
69
|
+
this.browsertimeBidi = new FirefoxBidi(
|
|
70
|
+
await runner.getDriver().getBidi(),
|
|
71
|
+
this.windowId,
|
|
72
|
+
runner.getDriver(),
|
|
73
|
+
this.options
|
|
74
|
+
);
|
|
67
75
|
}
|
|
68
76
|
|
|
69
77
|
/**
|
|
@@ -82,7 +90,7 @@ export class Firefox {
|
|
|
82
90
|
*/
|
|
83
91
|
async beforeStartIteration(runner) {
|
|
84
92
|
if (this.options.injectJs) {
|
|
85
|
-
await this.
|
|
93
|
+
await this.browsertimeBidi.injectJavaScript(this.options.injectJs);
|
|
86
94
|
}
|
|
87
95
|
|
|
88
96
|
if (
|
package/package.json
CHANGED