0189fc0d followup: wait for lazyload blindly only in FF

This commit is contained in:
tophf 2017-08-23 09:46:36 +03:00
parent 9a55e64bbb
commit 6ce8ce0425

View File

@ -124,7 +124,12 @@ function initPopup(url) {
ignoreChromeError(); ignoreChromeError();
// FF and some Chrome forks (e.g. CentBrowser) implement tab-on-demand // FF and some Chrome forks (e.g. CentBrowser) implement tab-on-demand
// so we'll wait a bit to handle popup being invoked right after switching // so we'll wait a bit to handle popup being invoked right after switching
if (retryCountdown > 0) { if (
retryCountdown > 0 && (
tab.status !== 'complete' ||
FIREFOX && tab.url === 'about:blank'
)
) {
setTimeout(ping, 100, tab, --retryCountdown); setTimeout(ping, 100, tab, --retryCountdown);
} else { } else {
document.body.classList.add('unreachable'); document.body.classList.add('unreachable');