restore getStylesViaXhr check for about:blank frames

regressed in 50959354
This commit is contained in:
tophf 2021-02-05 10:51:39 +03:00
parent 50959354ec
commit ade8d1981b

View File

@ -73,7 +73,7 @@
* and they may break if unexpected DOM stuff is present at `load` event * and they may break if unexpected DOM stuff is present at `load` event
* so we'll add the styles in the next tick */ * so we'll add the styles in the next tick */
parentStyles && await new Promise(requestAnimationFrame) && parentStyles || 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); await API.styles.getSectionsByUrl(matchUrl, null, true);
hasStyles = !styles.disableAll; hasStyles = !styles.disableAll;
if (hasStyles) { if (hasStyles) {