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.
This commit is contained in:
Abe Jellinek 2023-09-20 12:56:02 -04:00
parent 309e56df06
commit 540a174dab

View file

@ -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()) {