mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Dispatch an event on sandbox creation
* the goal is to be able to know when the sandbox is ready for mochitest in m-c
This commit is contained in:
parent
142f131ee1
commit
4ae9064d60
1 changed files with 6 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue