From ade8d1981bff80eeec7a37e0cb38409ca61e7037 Mon Sep 17 00:00:00 2001 From: tophf Date: Fri, 5 Feb 2021 10:51:39 +0300 Subject: [PATCH] restore getStylesViaXhr check for about:blank frames regressed in 50959354 --- content/apply.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/apply.js b/content/apply.js index 013f4816..c50cccaf 100644 --- a/content/apply.js +++ b/content/apply.js @@ -73,7 +73,7 @@ * and they may break if unexpected DOM stuff is present at `load` event * so we'll add the styles in the next tick */ parentStyles && await new Promise(requestAnimationFrame) && parentStyles || - chrome.app && !chrome.tabs && tryCatch(getStylesViaXhr) || + !isFrameAboutBlank && chrome.app && !chrome.tabs && tryCatch(getStylesViaXhr) || await API.styles.getSectionsByUrl(matchUrl, null, true); hasStyles = !styles.disableAll; if (hasStyles) {