browsertime 16.11.4 → 16.12.0

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,8 +1,16 @@
1
1
  # Browsertime changelog (we do [semantic versioning](https://semver.org))
2
2
 
3
+ ## 16.12.0 - 2022-08-06
4
+ ### Added
5
+ * Upgraded to Chrome 104, Edge 104, Firefox 103 in the Docker container.
6
+ * Upgraded to Chromedriver 104.
7
+
8
+ ### Fixed
9
+ * Remove old Firefox on Android workaround for orange frame [#1821](https://github.com/sitespeedio/browsertime/pull/1821), thank you [Sean Feng](https://github.com/sefeng211) for the PR.
10
+
3
11
  ## 16.11.4 - 2022-07-17
4
12
  ### Fixed
5
- * Automatically add white nbackground between --preURL and the URL that you wanna test. This makes visual metrics usable when using preURL. [#1819](https://github.com/sitespeedio/browsertime/pull/1819)
13
+ * Automatically add white background between --preURL and the URL that you wanna test. This makes visual metrics usable when using preURL. [#1819](https://github.com/sitespeedio/browsertime/pull/1819)
6
14
 
7
15
  ## 16.11.3 - 2022-07-14
8
16
 
@@ -2,49 +2,12 @@
2
2
 
3
3
  const log = require('intel').getLogger('browsertime.video');
4
4
  const { until, By } = require('selenium-webdriver');
5
- module.exports = async function (driver, options) {
5
+ module.exports = async function (driver) {
6
6
  log.debug('Add orange color');
7
7
  // We tried other ways for Android (access an orange page)
8
8
  // That works fine ... but break scripts
9
9
  // https://github.com/sitespeedio/browsertime/issues/802
10
-
11
- let orangeScript = '';
12
-
13
- if (options.android && options.browser === 'firefox') {
14
- orangeScript = `
15
- (function() {
16
- // Adding this extra layer of white frame fixes
17
- // https://bugzilla.mozilla.org/show_bug.cgi?id=1606365
18
- // Not clear why it fixes this bug, looks like when
19
- // WebRender is enabled, orange frame isn't being
20
- // removed correctly if it's the only element
21
- // in the document.
22
- const white = document.createElement('div');
23
- white.id = 'browsertime-white';
24
- white.style.position = 'absolute';
25
- white.style.top = '0';
26
- white.style.left = '0';
27
- white.style.width = Math.max(document.documentElement.clientWidth, document.body.clientWidth) + 'px';
28
- white.style.height = Math.max(document.documentElement.clientHeight,document.body.clientHeight) + 'px';
29
- white.style.backgroundColor = 'white';
30
- white.style.zIndex = '2147483647';
31
- document.body.appendChild(white);
32
- document.body.style.display = '';
33
-
34
- const orange = document.createElement('div');
35
- orange.id = 'browsertime-orange';
36
- orange.style.position = 'absolute';
37
- orange.style.top = '0';
38
- orange.style.left = '0';
39
- orange.style.width = Math.max(document.documentElement.clientWidth, document.body.clientWidth) + 'px';
40
- orange.style.height = Math.max(document.documentElement.clientHeight,document.body.clientHeight) + 'px';
41
- orange.style.backgroundColor = '#DE640D';
42
- orange.style.zIndex = '2147483647';
43
- document.body.appendChild(orange);
44
- document.body.style.display = '';
45
- })();`;
46
- } else {
47
- orangeScript = `
10
+ const orangeScript = `
48
11
  (function() {
49
12
  const orange = document.createElement('div');
50
13
  orange.id = 'browsertime-orange';
@@ -59,7 +22,6 @@ module.exports = async function (driver, options) {
59
22
  document.body.appendChild(orange);
60
23
  document.body.style.display = '';
61
24
  })();`;
62
- }
63
25
 
64
26
  await driver.executeScript(orangeScript);
65
27
  // It seems that in some cases the video do not have any orange at the start, so make sure we
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "description": "Browsertime",
3
- "version": "16.11.4",
3
+ "version": "16.12.0",
4
4
  "bin": "./bin/browsertime.js",
5
5
  "dependencies": {
6
6
  "@cypress/xvfb": "1.2.4",
7
7
  "@devicefarmer/adbkit": "2.11.3",
8
- "@sitespeed.io/chromedriver": "103.0.5060-24b",
8
+ "@sitespeed.io/chromedriver": "104.0.5112-29",
9
9
  "@sitespeed.io/edgedriver": "103.0.1264-37",
10
10
  "@sitespeed.io/geckodriver": "0.31.0-c",
11
11
  "@sitespeed.io/throttle": "4.0.1",