RemoteTranslate: Fix updated tests not inheriting defer

This commit is contained in:
Abe Jellinek 2025-01-28 10:07:04 -05:00
parent 2afbe030d5
commit 2aee7ae8d5

View file

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