mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-28 21:28:55 +00:00
Bug 1568216 - Disable context menu for Picture-in-Picture player window. r=JSON_voorhees
Differential Revision: https://phabricator.services.mozilla.com/D47785 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
5794ef1442
commit
2a244afec6
@ -43,7 +43,14 @@ function setIsPlayingState(isPlaying) {
|
||||
* events for updating state.
|
||||
*/
|
||||
let Player = {
|
||||
WINDOW_EVENTS: ["click", "keydown", "mouseout", "resize", "unload"],
|
||||
WINDOW_EVENTS: [
|
||||
"click",
|
||||
"contextmenu",
|
||||
"keydown",
|
||||
"mouseout",
|
||||
"resize",
|
||||
"unload",
|
||||
],
|
||||
mm: null,
|
||||
/**
|
||||
* Used for resizing Telemetry to avoid recording an event for every resize
|
||||
@ -134,6 +141,11 @@ let Player = {
|
||||
break;
|
||||
}
|
||||
|
||||
case "contextmenu": {
|
||||
event.preventDefault();
|
||||
break;
|
||||
}
|
||||
|
||||
case "keydown": {
|
||||
if (event.keyCode == KeyEvent.DOM_VK_TAB) {
|
||||
this.controls.setAttribute("keying", true);
|
||||
|
Loading…
x
Reference in New Issue
Block a user