From 540a174dabdb61e1f6f14cfc3a7d8ea7ddc4a1f6 Mon Sep 17 00:00:00 2001 From: Abe Jellinek Date: Wed, 20 Sep 2023 12:56:02 -0400 Subject: [PATCH] TranslationChild: Make "interactive" count as readyEnough Some pages (notably the first DOI.js test case) never get to "complete". I don't know why! But for practically all translators that don't use defer: true, "interactive" is ready enough. --- chrome/content/zotero/actors/TranslationChild.jsm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/actors/TranslationChild.jsm b/chrome/content/zotero/actors/TranslationChild.jsm index 27a3607dfb..d8e387cba0 100644 --- a/chrome/content/zotero/actors/TranslationChild.jsm +++ b/chrome/content/zotero/actors/TranslationChild.jsm @@ -301,7 +301,7 @@ class TranslationChild extends JSWindowActorChild { const document = this.document; function readyEnough() { - return document.readyState === "complete"; + return document.readyState === "complete" || document.readyState === "interactive"; } if (readyEnough()) {