Bug 1535444 - Update MozTogglePictureInPicture actor definition. r=Felipe

Differential Revision: https://phabricator.services.mozilla.com/D23579

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Mike Conley 2019-03-14 20:51:02 +00:00
parent a5cf853818
commit fc71adb962
2 changed files with 4 additions and 2 deletions

View File

@ -14,7 +14,9 @@ class PictureInPictureChild extends ActorChild {
handleEvent(event) {
switch (event.type) {
case "MozTogglePictureInPicture": {
this.togglePictureInPicture(event.target);
if (event.isTrusted) {
this.togglePictureInPicture(event.target);
}
break;
}
}

View File

@ -353,7 +353,7 @@ if (AppConstants.NIGHTLY_BUILD) {
child: {
module: "resource://gre/actors/PictureInPictureChild.jsm",
events: {
"MozTogglePictureInPicture": {capture: true, wantUntrusted: true},
"MozTogglePictureInPicture": {capture: true},
},
messages: [