From 4ae9064d60551e4911134c0e2eff5df23f927bca Mon Sep 17 00:00:00 2001 From: Calixte Denizet Date: Fri, 18 Dec 2020 17:20:40 +0100 Subject: [PATCH] Dispatch an event on sandbox creation * the goal is to be able to know when the sandbox is ready for mochitest in m-c --- web/app.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/web/app.js b/web/app.js index 79a47aca9ac69..d42fd7d217888 100644 --- a/web/app.js +++ b/web/app.js @@ -1580,6 +1580,12 @@ const PDFViewerApplication = { URL: this.url, }, }); + + if (this.externalServices.isInAutomation) { + this.eventBus.dispatch("sandboxcreated", { + source: this, + }); + } } catch (error) { console.error(error); this._destroyScriptingInstance();