From 158b9b3c36c8625695b6f0473a992dedeed494ca Mon Sep 17 00:00:00 2001 From: Benjamin Pasero Date: Tue, 29 Jun 2021 19:41:19 +0200 Subject: [PATCH] bootstrap - log an error when window config cannot be loaded in 10s (#127421) --- src/bootstrap-window.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/bootstrap-window.js b/src/bootstrap-window.js index 23d6e05a210..0dbdbc5265d 100644 --- a/src/bootstrap-window.js +++ b/src/bootstrap-window.js @@ -52,10 +52,12 @@ }); // Await window configuration from preload + const timeout = setTimeout(() => { console.error(`[resolve window config] Could not resolve window configuration within 10 seconds, but will continue to wait...`); }, 10000); performance.mark('code/willWaitForWindowConfig'); /** @type {ISandboxConfiguration} */ const configuration = await preloadGlobals.context.resolveConfiguration(); performance.mark('code/didWaitForWindowConfig'); + clearTimeout(timeout); // Signal DOM modifications are now OK if (typeof options?.canModifyDOM === 'function') {