0189fc0d
followup: wait for lazyload blindly only in FF
This commit is contained in:
parent
9a55e64bbb
commit
6ce8ce0425
|
@ -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');
|
||||||
|
|
Loading…
Reference in New Issue
Block a user