Skip to content

Commit e582e8f

Browse files
authored
fix: Added termsofuse.bypassNotification to the default Firefox prefs (#3691)
1 parent 3e2e3c1 commit e582e8f

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

src/firefox/preferences.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,9 @@ const prefsFirefox = {
9696
// the privacy info page to be opened on every "web-ext run".
9797
// (See #1114 for rationale)
9898
'datareporting.policy.firstRunURL': '',
99+
100+
// Prevent the terms-of-use modal from appearing on every "web-ext run". (See #3478)
101+
'termsofuse.bypassNotification': true,
99102
};
100103

101104
const prefs = {

tests/unit/test-firefox/test.preferences.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ describe('firefox/preferences', () => {
2121
// This is a Firefox only pref that we set to prevent Firefox
2222
// to open the privacy policy info page on every "web-ext run".
2323
assert.equal(prefs['datareporting.policy.firstRunURL'], '');
24+
// This pref prevents the terms-of-use modal from blocking web-ext run (see #3478).
25+
assert.equal(prefs['termsofuse.bypassNotification'], true);
2426
});
2527

2628
it('gets Fennec prefs with some defaults', () => {

0 commit comments

Comments
 (0)