Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Commit 0d21e34

Browse files
author
Eugen Sawin
committed
Bug 1436887 - [1.1] Add GeckoView prefs file. r=snorp,jchen
1 parent 12fe7a2 commit 0d21e34

4 files changed

Lines changed: 15 additions & 0 deletions

File tree

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,7 @@ mobile/android/tests/browser/chrome/tp5/**
324324

325325
# Uses `#filter substitution`
326326
mobile/android/app/mobile.js
327+
mobile/android/app/geckoview-prefs.js
327328

328329
# Uses `#expand`
329330
mobile/android/chrome/content/about.js
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/* This Source Code Form is subject to the terms of the Mozilla Public
2+
* License, v. 2.0. If a copy of the MPL was not distributed with this
3+
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4+
5+
#filter substitution
6+
7+
#include mobile.js
8+
9+
pref("privacy.trackingprotection.pbmode.enabled", false);

mobile/android/app/moz.build

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ if CONFIG['MOZ_PKG_SPECIAL']:
4949
DEFINES['MOZ_PKG_SPECIAL'] = CONFIG['MOZ_PKG_SPECIAL']
5050

5151
JS_PREFERENCE_PP_FILES += [
52+
'geckoview-prefs.js',
5253
'mobile.js',
5354
]
5455

mobile/android/installer/package-manifest.in

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,11 @@
435435

436436
; [Default Preferences]
437437
; All the pref files must be part of base to prevent migration bugs
438+
#ifdef MOZ_GECKOVIEW_JAR
439+
@BINPATH@/@PREF_DIR@/geckoview-prefs.js
440+
#else
438441
@BINPATH@/@PREF_DIR@/mobile.js
442+
#endif
439443
@BINPATH@/@PREF_DIR@/channel-prefs.js
440444
@BINPATH@/ua-update.json
441445
@BINPATH@/greprefs.js

0 commit comments

Comments
 (0)