From 2aee7ae8d5a94d56cc01da44e63f8c200637139c Mon Sep 17 00:00:00 2001 From: Abe Jellinek Date: Tue, 28 Jan 2025 10:07:04 -0500 Subject: [PATCH] RemoteTranslate: Fix updated tests not inheriting defer --- chrome/content/zotero/actors/TranslationChild.jsm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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(