browsertime 16.13.0 → 16.13.3
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
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Browsertime changelog (we do [semantic versioning](https://semver.org))
|
|
2
2
|
|
|
3
|
+
|
|
4
|
+
## 16.13.3 - 2022-08-17
|
|
5
|
+
|
|
6
|
+
### Fixed
|
|
7
|
+
* Make sure set cookies work when navigating in script for Chrome/Edge [#1830](https://github.com/sitespeedio/browsertime/pull/1830).
|
|
8
|
+
|
|
9
|
+
## 16.13.2 - 2022-08-14
|
|
10
|
+
### Fixed
|
|
11
|
+
* Disable adding lastCPULongTask to the HAR data since it breaks waterfall view on slow mobile phones with late CPU long tasks [#1828](https://github.com/sitespeedio/browsertime/pull/1828).
|
|
12
|
+
|
|
13
|
+
## 16.13.1 - 2022-08-10
|
|
14
|
+
### Fixed
|
|
15
|
+
* Make sure that Android id is always picked up from the phone if tests run on Android [#1826](https://github.com/sitespeedio/browsertime/pull/1826).
|
|
16
|
+
|
|
3
17
|
## 16.13.0 - 2022-08-08
|
|
4
18
|
### Added
|
|
5
19
|
* Upgraded to Edgedriver 104.
|
package/lib/android/index.js
CHANGED
|
@@ -161,13 +161,16 @@ class Android {
|
|
|
161
161
|
const name = (await adb.util.readAll(rawName)).toString().trim();
|
|
162
162
|
const rawDevice = await this._runCommand(`getprop ro.product.device`);
|
|
163
163
|
const device = (await adb.util.readAll(rawDevice)).toString().trim();
|
|
164
|
+
const rawId = await this._runCommand(`getprop ro.serialno`);
|
|
165
|
+
const id = (await adb.util.readAll(rawId)).toString().trim();
|
|
166
|
+
|
|
164
167
|
const rawRelease = await this._runCommand(
|
|
165
168
|
`getprop ro.build.version.release `
|
|
166
169
|
);
|
|
167
170
|
const androidVersion = (await adb.util.readAll(rawRelease))
|
|
168
171
|
.toString()
|
|
169
172
|
.trim();
|
|
170
|
-
return { model, name, device, androidVersion };
|
|
173
|
+
return { model, name, device, androidVersion, id };
|
|
171
174
|
}
|
|
172
175
|
|
|
173
176
|
async pullNetLog(destination) {
|
|
@@ -141,6 +141,15 @@ class Measure {
|
|
|
141
141
|
log.info('Navigating to url %s iteration %s', url, this.index);
|
|
142
142
|
if (this.numberOfVisitedPages === 0) {
|
|
143
143
|
await this.extensionServer.setup(url, this.browser, this.options);
|
|
144
|
+
|
|
145
|
+
// There's a bug that we introduced when moving cookie handling to CDP
|
|
146
|
+
// and this is the hack to fix that.
|
|
147
|
+
if (
|
|
148
|
+
(this.options.cookie && this.options.browser === 'chrome') ||
|
|
149
|
+
this.options.browser === 'edge'
|
|
150
|
+
) {
|
|
151
|
+
await this.engineDelegate.setCookies(url, this.options.cookie);
|
|
152
|
+
}
|
|
144
153
|
}
|
|
145
154
|
if (this.numberOfVisitedPages === 0) {
|
|
146
155
|
await this.engineDelegate.beforeStartIteration(this.browser, this.index);
|
package/lib/support/har/index.js
CHANGED
|
@@ -91,9 +91,11 @@ function addExtrasToHAR(
|
|
|
91
91
|
harPageTimings._firstPaint = timings.firstPaint;
|
|
92
92
|
}
|
|
93
93
|
|
|
94
|
+
/*
|
|
94
95
|
if (cpu && cpu.longTasks && cpu.longTasks.lastLongTask) {
|
|
95
96
|
harPageTimings._lastCPULongTask = cpu.longTasks.lastLongTask;
|
|
96
97
|
}
|
|
98
|
+
*/
|
|
97
99
|
|
|
98
100
|
if (timings && timings.largestContentfulPaint) {
|
|
99
101
|
harPageTimings._largestContentfulPaint =
|