Closed Bug 1662576 Opened 4 years ago Closed 4 years ago

Add list of domains for WebCompat add-on for which the Picture-in-Picture keyboard shortcuts should be disabled

Categories

(Web Compatibility :: Interventions, enhancement, P2)

enhancement

Tracking

(firefox82 fixed)

RESOLVED FIXED
Tracking Status
firefox82 --- fixed

People

(Reporter: mconley, Assigned: twisniewski)

References

(Regressed 1 open bug)

Details

Attachments

(1 file)

Similar to how we override the default placement of the PiP toggle for certain sites, we'd like to make it so that the webcompat add-on can provide a list of domain matcher strings so that the player window knows which sites break when attempting to do things like seek, play or pause.

Perhaps something like:

const KEYBOARD_CONTROLS = browser.pictureInPictureChild.getKeyboardControls();

PIP_KEYBOARD_OVERRIDES: {
  "https://*.netflix.com/*": KEYBOARD_CONTROLS.PLAY_PAUSE | KEYBOARD_CONTROLS.VOLUME,
  "http://*.someothersite.com/*": KEYBOARD_CONTROLS.NONE,
},

Where KEYBOARD_CONTROLS could be a structure of bit constants like:

KEYBOARD_CONTROLS = {
  NONE: 0,
  PLAY_PAUSE: 1 << 0,
  MUTE_UNMUTE: 1 << 1,
  VOLUME: 1 << 2,
  SEEK: 1 << 3,
};

alternatively, if we don't want to do bitwise stuff, we could also do something like:

PIP_KEYBOARD_OVERRIDES: {
  "https://*.netflix.com/*": {
    playpause: true,
    volume: true,
  },
  "http://*.someothersite.com/*": {},
},
Severity: -- → N/A
Type: defect → enhancement
Priority: -- → P2
Blocks: 1649244
No longer blocks: 1649244
Assignee: nobody → twisniewski
Status: NEW → ASSIGNED
Pushed by twisniewski@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/3299eee79671
add ability to disable picture-in-picture hotkeys on specific domains in webcompat addon, and disable PiP-seeking on Netflix; r=mconley,denschub,webcompat-reviewers
Regressions: 1664599
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Blocks: 1649244
Regressions: 1749467
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: