mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-20 00:35:44 +00:00
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:
parent
a5cf853818
commit
fc71adb962
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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: [
|
||||
|
Loading…
Reference in New Issue
Block a user