@@ -660,15 +660,21 @@ class Tab extends EventTargetShim {
660
660
}
661
661
662
662
createModal ( title , { isOpen = false } = { } ) {
663
- return modal . createEditorModal ( this , title , { isOpen} ) ;
663
+ const modal = modal . createEditorModal ( this , title , { isOpen} ) ;
664
+ this . traps . vm . emit ( "ADDON_WORKER_MODAL" , modal ) ;
665
+ return modal ;
664
666
}
665
667
666
668
confirm ( ...args ) {
667
- return modal . confirm ( this , ...args ) ;
669
+ const modal = modal . confirm ( this , ...args ) ;
670
+ this . traps . vm . emit ( "ADDON_WORKER_MODAL" , modal ) ;
671
+ return modal ;
668
672
}
669
673
670
674
prompt ( ...args ) {
671
- return modal . prompt ( this , ...args ) ;
675
+ const modal = modal . prompt ( this , ...args ) ;
676
+ this . traps . vm . emit ( "ADDON_WORKER_MODAL" , modal ) ;
677
+ return modal ;
672
678
}
673
679
}
674
680
@@ -714,8 +720,7 @@ class AddonRunner {
714
720
addon : {
715
721
tab : new Tab ( id ) ,
716
722
settings : new Settings ( id , manifest ) ,
717
- self : new Self ( id , this . getResource . bind ( this ) ) ,
718
- tabClass : id === "editor-animations" ? Tab : "access denied"
723
+ self : new Self ( id , this . getResource . bind ( this ) )
719
724
} ,
720
725
msg : this . msg . bind ( this ) ,
721
726
safeMsg : this . safeMsg . bind ( this )
0 commit comments