Bug 1493315: Build config for dedicated profiles and downgrade protection. r=ted
authorDave Townsend <dtownsend@oxymoronical.com>
Fri, 21 Sep 2018 23:32:55 +0000
changeset 493491 575545bc2b10c7e06d89ef687bc2f6c1e7fa2cc5
parent 493490 caccc6d0cd9a5e5d83f474e7637fbf953ab449cd
child 493492 d432e26bd0b5ac9e3c3877592616fb7110b52142
push id9984
push userffxbld-merge
push dateMon, 15 Oct 2018 21:07:35 +0000
treeherdermozilla-beta@183d27ea8570 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersted
bugs1493315
milestone64.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1493315: Build config for dedicated profiles and downgrade protection. r=ted Differential Revision: https://phabricator.services.mozilla.com/D6545
browser/moz.configure
toolkit/moz.configure
--- a/browser/moz.configure
+++ b/browser/moz.configure
@@ -2,16 +2,18 @@
 # vim: set filetype=python:
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
 
 imply_option('MOZ_PLACES', True)
 imply_option('MOZ_SERVICES_HEALTHREPORT', True)
 imply_option('MOZ_SERVICES_SYNC', True)
+imply_option('MOZ_DEDICATED_PROFILES', True)
+imply_option('MOZ_BLOCK_PROFILE_DOWNGRADE', True)
 
 with only_when(target_is_linux & compile_environment):
     option(env='MOZ_NO_PIE_COMPAT',
            help='Enable non-PIE wrapper')
 
     set_config('MOZ_NO_PIE_COMPAT',
                depends_if('MOZ_NO_PIE_COMPAT')(lambda _: True))
 
--- a/toolkit/moz.configure
+++ b/toolkit/moz.configure
@@ -549,16 +549,24 @@ project_flag('MOZ_SERVICES_HEALTHREPORT'
 
 project_flag('MOZ_SERVICES_SYNC',
              help='Build Sync Services if required')
 
 project_flag('MOZ_ANDROID_HISTORY',
              help='Enable Android History instead of Places',
              set_as_define=True)
 
+project_flag('MOZ_DEDICATED_PROFILES',
+             help='Enable dedicated profiles per install',
+             set_as_define=True)
+
+project_flag('MOZ_BLOCK_PROFILE_DOWNGRADE',
+             help='Block users from starting profiles last used by a newer build',
+             set_as_define=True)
+
 option(env='MOZ_ALLOW_LEGACY_EXTENSIONS',
        default=milestone.is_nightly,
        help='Allow legacy browser extensions')
 
 @depends('MOZ_ALLOW_LEGACY_EXTENSIONS')
 def legacy_extensions(value):
     if bool(value):
         return True