Closed Bug 1638426 Opened 5 years ago Closed 5 years ago

Add ability to disable PiP interventions.

Categories

(Web Compatibility :: Interventions, task, P2)

Tracking

(firefox82 fixed)

RESOLVED FIXED
Tracking Status
firefox82 --- fixed

People

(Reporter: miketaylr, Assigned: twisniewski, NeedInfo)

References

Details

Attachments

(1 file)

Currently we have prefs that allow you to disable injections and overrides, but nothing for PiP interventions. It would be useful to be able to disable them when testing things during development.

Do we also want to display these in about:compat? Or is that not very useful?

Adam, how important do you think this is?

Flags: needinfo?(astevenson)

Adam, how important do you think this is?

I should clarify -- disabling globally seems important. How important is showing these in about:compat?

Assignee: nobody → twisniewski
Priority: P3 → P2

It's worth noting that a restart seems to be required before pref flips for picture-in-picture interventions have an effect. That said, the patch adds these prefs (which we can tweak as desired before landing):

  • global pref for all interventions:
    extensions.webcompat.enable_picture_in_picture_overrides
  • per-intervention pref:
    enable_picture_in_picture_overrides.disabled_picture_in_picture_overrides.{twitch|instagram|etc}

(In reply to Thomas Wisniewski [:twisniewski] from comment #5)

It's worth noting that a restart seems to be required before pref flips for picture-in-picture interventions have an effect.

This is a bit worrying to me, and I see a huge risk of confusing here. extensions.webcompat.perform_injections and extensions.webcompat.perform_ua_overrides both work without restarting and will actually reset themselves on restart, which is in direct contrast to the PiP pref.

I assume you have investigated that, and did not find a way to disable the interventions without a restart?

Flags: needinfo?(wisniewskit)

After chatting with :mstriemer, I think we can do this by adding a new observer to the picture-in-picture code which the addon can use to signal whenever the interventions change (right now it only reads the values once).

Flags: needinfo?(wisniewskit)
Pushed by twisniewski@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/062052fe43ff Add ability to disable webcompat picture-in-picture interventions, either globally or per-intervention; r=denschub,webcompat-reviewers,mconley
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Blocks: 1649244
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: