mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-10 18:25:37 +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,
|
URL: this.url,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (this.externalServices.isInAutomation) {
|
||||||
|
this.eventBus.dispatch("sandboxcreated", {
|
||||||
|
source: this,
|
||||||
|
});
|
||||||
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
this._destroyScriptingInstance();
|
this._destroyScriptingInstance();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue