diff --git a/chrome/content/zotero/actors/TranslationChild.jsm b/chrome/content/zotero/actors/TranslationChild.jsm index 5271174754..ac8b5d76cf 100644 --- a/chrome/content/zotero/actors/TranslationChild.jsm +++ b/chrome/content/zotero/actors/TranslationChild.jsm @@ -131,7 +131,12 @@ class TranslationChild extends JSWindowActorChild { tester.newTest( this.contentWindow.document, Cu.exportFunction( - (_, test) => resolve(test), + (_, test) => { + if (testInit?.defer) { + test.defer = testInit.defer; + } + resolve(test); + }, this._sandbox ), Cu.exportFunction(