From d4404cf39db740cec8eb3e0e7d7f1fa5b313b231 Mon Sep 17 00:00:00 2001 From: soulgalore Date: Wed, 15 Nov 2023 06:48:35 +0100 Subject: [PATCH 1/2] Fill GWV with FCP from FF --- lib/firefox/webdriver/firefox.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/firefox/webdriver/firefox.js b/lib/firefox/webdriver/firefox.js index ae05e4021..f71fd64af 100644 --- a/lib/firefox/webdriver/firefox.js +++ b/lib/firefox/webdriver/firefox.js @@ -234,6 +234,14 @@ export class Firefox { result.browserScripts.timings.largestContentfulPaint.renderTime || result.browserScripts.timings.largestContentfulPaint.loadTime; } + + if ( + result.browserScripts.timings.paintTiming && + result.browserScripts.timings.paintTiming['first-contentful-paint'] + ) { + result.googleWebVitals.firstContentfulPaint = + result.browserScripts.timings.paintTiming['first-contentful-paint']; + } } async postWork(index, results) { From f2ea7b12fd94bff634ec21ba1399b5399cebb3c7 Mon Sep 17 00:00:00 2001 From: soulgalore Date: Wed, 15 Nov 2023 08:11:35 +0100 Subject: [PATCH 2/2] fix --- lib/firefox/webdriver/firefox.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/firefox/webdriver/firefox.js b/lib/firefox/webdriver/firefox.js index f71fd64af..d5ddd8e33 100644 --- a/lib/firefox/webdriver/firefox.js +++ b/lib/firefox/webdriver/firefox.js @@ -236,6 +236,7 @@ export class Firefox { } if ( + result.browserScripts.timings && result.browserScripts.timings.paintTiming && result.browserScripts.timings.paintTiming['first-contentful-paint'] ) {