web-ext icon indicating copy to clipboard operation
web-ext copied to clipboard

Add new `pref` to disable upcoming privacy related Firefox window

Open Juraj-Masiar opened this issue 5 months ago • 3 comments

Firefox Nightly 143 now shows this:

Image

It would be great if web-ext would disable it by default.

I have seen this: https://github.com/mozilla/web-ext/issues/3176, but this feels reasonable :)

NOTE: I've tried to use these two locally:

      'termsofuse.acceptedDate=1754040410093',
      'termsofuse.acceptedVersion=4',

But it doesn't help, there is likely something else but I can't find it...

Juraj-Masiar avatar Aug 01 '25 09:08 Juraj-Masiar

Firefox's enterprise policy implementation does something similar, perhaps we can use that logic in web-ext as well? https://searchfox.org/mozilla-central/rev/ce0d41b6033e2a104904327a43edf730245f5241/browser/components/enterprisepolicies/Policies.sys.mjs#2672-2673

Rob--W avatar Aug 14 '25 12:08 Rob--W

The webdriver classic/bidi internals in Firefox use this "termsofuse.bypassNotification" boolean pref to flip this off:

https://searchfox.org/mozilla-central/rev/ce0d41b6033e2a104904327a43edf730245f5241/remote/shared/RecommendedPreferences.sys.mjs#377-378

@Juraj-Masiar setting this pref through web-ext run --pref="..." did bypass the dialog for me on a Nightly build, would you mind to double-check if that works also for you? especially if you are trying this on a release build, that would help to confirm this is the pref that we should set by default also for web-ext run.

rpl avatar Aug 14 '25 13:08 rpl

Thanks @rpl for the fix! That alone fixed it for me, even without specifying the other two that I've tried before.

Sadly I can't test it on release since I don't have it installed. I'm only using ESR and Nightly for development. But I'll test it on Beta once it reaches it.

Juraj-Masiar avatar Aug 14 '25 13:08 Juraj-Masiar