diff options
Diffstat (limited to 'toolkit')
-rw-r--r-- | toolkit/components/feeds/FeedProcessor.js | 3 | ||||
-rw-r--r-- | toolkit/components/passwordmgr/moz.build | 4 | ||||
-rw-r--r-- | toolkit/components/search/moz.build | 2 | ||||
-rw-r--r-- | toolkit/components/telemetry/TelemetryEnvironment.jsm | 2 | ||||
-rw-r--r-- | toolkit/modules/AppConstants.jsm | 9 | ||||
-rw-r--r-- | toolkit/modules/Services.jsm | 35 | ||||
-rw-r--r-- | toolkit/modules/moz.build | 2 | ||||
-rw-r--r-- | toolkit/moz.configure | 24 | ||||
-rw-r--r-- | toolkit/themes/linux/mozapps/jar.mn | 2 | ||||
-rw-r--r-- | toolkit/themes/moz.build | 6 | ||||
-rw-r--r-- | toolkit/themes/osx/global/jar.mn | 2 | ||||
-rw-r--r-- | toolkit/themes/osx/mozapps/jar.mn | 2 | ||||
-rw-r--r-- | toolkit/themes/shared/non-mac.jar.inc.mn | 2 | ||||
-rw-r--r-- | toolkit/themes/windows/global/jar.mn | 2 | ||||
-rw-r--r-- | toolkit/themes/windows/mozapps/jar.mn | 2 | ||||
-rw-r--r-- | toolkit/xre/moz.build | 2 |
16 files changed, 45 insertions, 56 deletions
diff --git a/toolkit/components/feeds/FeedProcessor.js b/toolkit/components/feeds/FeedProcessor.js index 88d0ad6ed..51b6b13c9 100644 --- a/toolkit/components/feeds/FeedProcessor.js +++ b/toolkit/components/feeds/FeedProcessor.js @@ -637,7 +637,8 @@ TextConstruct.prototype = { else return null; - return this.parserUtils.parseFragment(this.text, 0, isXML, + let flags = Ci.nsIParserUtils.SanitizerDropForms; + return this.parserUtils.parseFragment(this.text, flags, isXML, this.base, element); }, diff --git a/toolkit/components/passwordmgr/moz.build b/toolkit/components/passwordmgr/moz.build index 72c8c70a4..e54e6ba2d 100644 --- a/toolkit/components/passwordmgr/moz.build +++ b/toolkit/components/passwordmgr/moz.build @@ -4,7 +4,7 @@ # 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/. -if CONFIG['MOZ_BUILD_APP'] == 'browser': +if CONFIG['MOZ_PHOENIX']: DEFINES['MOZ_BUILD_APP_IS_BROWSER'] = True MOCHITEST_MANIFESTS += ['test/mochitest.ini', 'test/mochitest/mochitest.ini'] @@ -67,7 +67,7 @@ if CONFIG['OS_TARGET'] == 'WINNT': 'OSCrypto_win.js', ] -if CONFIG['MOZ_BUILD_APP'] == 'browser': +if CONFIG['MOZ_PHOENIX']: EXTRA_JS_MODULES += [ 'LoginManagerContextMenu.jsm', ] diff --git a/toolkit/components/search/moz.build b/toolkit/components/search/moz.build index 98ccf2b8d..2dc142882 100644 --- a/toolkit/components/search/moz.build +++ b/toolkit/components/search/moz.build @@ -11,7 +11,7 @@ EXTRA_COMPONENTS += [ 'nsSearchSuggestions.js', ] -if CONFIG['MOZ_BUILD_APP'] in ['browser', 'mobile/android', 'xulrunner']:
+if CONFIG['MOZ_BUILD_APP'] in ['mobile/android', 'xulrunner'] or CONFIG['MOZ_PHOENIX']:
DEFINES['HAVE_SIDEBAR'] = True
EXTRA_COMPONENTS += [ 'nsSidebar.js', diff --git a/toolkit/components/telemetry/TelemetryEnvironment.jsm b/toolkit/components/telemetry/TelemetryEnvironment.jsm index e2453649c..2f4ac81ba 100644 --- a/toolkit/components/telemetry/TelemetryEnvironment.jsm +++ b/toolkit/components/telemetry/TelemetryEnvironment.jsm @@ -784,7 +784,7 @@ function EnvironmentCache() { this._currentEnvironment.profile = {}; p.push(this._updateProfile()); - if (AppConstants.MOZ_BUILD_APP == "browser") { + if (AppConstants.MOZ_PHOENIX) { p.push(this._updateAttribution()); } diff --git a/toolkit/modules/AppConstants.jsm b/toolkit/modules/AppConstants.jsm index 7ce8e1f09..8d9fa103c 100644 --- a/toolkit/modules/AppConstants.jsm +++ b/toolkit/modules/AppConstants.jsm @@ -308,7 +308,14 @@ this.AppConstants = Object.freeze({ MOZ_APP_NAME: "@MOZ_APP_NAME@", MOZ_APP_VERSION: "@MOZ_APP_VERSION@", MOZ_APP_VERSION_DISPLAY: "@MOZ_APP_VERSION_DISPLAY@", - MOZ_BUILD_APP: "@MOZ_BUILD_APP@", + + MOZ_BUILD_APP: +#ifdef MOZ_PHOENIX + "browser", +#else + "@MOZ_BUILD_APP@", +#endif + MOZ_MACBUNDLE_NAME: "@MOZ_MACBUNDLE_NAME@", MOZ_UPDATE_CHANNEL: "@MOZ_UPDATE_CHANNEL@", INSTALL_LOCALE: "@AB_CD@", diff --git a/toolkit/modules/Services.jsm b/toolkit/modules/Services.jsm index 1a6c3ea87..1bf1a89fe 100644 --- a/toolkit/modules/Services.jsm +++ b/toolkit/modules/Services.jsm @@ -39,14 +39,14 @@ XPCOMUtils.defineLazyGetter(Services, "dirsvc", function () { .QueryInterface(Ci.nsIProperties); }); -if (AppConstants.MOZ_CRASHREPORTER) { - XPCOMUtils.defineLazyGetter(Services, "crashmanager", () => { - let ns = {}; - Components.utils.import("resource://gre/modules/CrashManager.jsm", ns); +#ifdef MOZ_CRASHREPORTER +XPCOMUtils.defineLazyGetter(Services, "crashmanager", () => { + let ns = {}; + Components.utils.import("resource://gre/modules/CrashManager.jsm", ns); - return ns.CrashManager.Singleton; - }); -} + return ns.CrashManager.Singleton; +}); +#endif XPCOMUtils.defineLazyGetter(Services, "mm", () => { return Cc["@mozilla.org/globalmessagemanager;1"] @@ -61,8 +61,9 @@ XPCOMUtils.defineLazyGetter(Services, "ppmm", () => { }); var initTable = [ - ["androidBridge", "@mozilla.org/android/bridge;1", "nsIAndroidBridge", - AppConstants.platform == "android"], +#ifdef MOZ_WIDGET_ANDROID + ["androidBridge", "@mozilla.org/android/bridge;1", "nsIAndroidBridge"], +#endif ["appShell", "@mozilla.org/appshell/appShellService;1", "nsIAppShellService"], ["cache", "@mozilla.org/network/cache-service;1", "nsICacheService"], ["cache2", "@mozilla.org/netwerk/cache-storage-service;1", "nsICacheStorageService"], @@ -80,12 +81,14 @@ var initTable = [ ["obs", "@mozilla.org/observer-service;1", "nsIObserverService"], ["perms", "@mozilla.org/permissionmanager;1", "nsIPermissionManager"], ["prompt", "@mozilla.org/embedcomp/prompt-service;1", "nsIPromptService"], - ["profiler", "@mozilla.org/tools/profiler;1", "nsIProfiler", - AppConstants.MOZ_ENABLE_PROFILER_SPS], +#ifdef MOZ_ENABLE_PROFILER_SPS + ["profiler", "@mozilla.org/tools/profiler;1", "nsIProfiler"], +#endif ["scriptloader", "@mozilla.org/moz/jssubscript-loader;1", "mozIJSSubScriptLoader"], ["scriptSecurityManager", "@mozilla.org/scriptsecuritymanager;1", "nsIScriptSecurityManager"], - ["search", "@mozilla.org/browser/search-service;1", "nsIBrowserSearchService", - AppConstants.MOZ_TOOLKIT_SEARCH], +#ifdef MOZ_TOOLKIT_SEARCH + ["search", "@mozilla.org/browser/search-service;1", "nsIBrowserSearchService"], +#endif ["storage", "@mozilla.org/storage/service;1", "mozIStorageService"], ["domStorageManager", "@mozilla.org/dom/localStorage-manager;1", "nsIDOMStorageManager"], ["strings", "@mozilla.org/intl/stringbundle;1", "nsIStringBundleService"], @@ -107,10 +110,8 @@ var initTable = [ ["qms", "@mozilla.org/dom/quota-manager-service;1", "nsIQuotaManagerService"], ]; -initTable.forEach(([name, contract, intf, enabled = true]) => { - if (enabled) { - XPCOMUtils.defineLazyServiceGetter(Services, name, contract, intf); - } +initTable.forEach(([name, contract, intf]) => { + XPCOMUtils.defineLazyServiceGetter(Services, name, contract, intf); }); diff --git a/toolkit/modules/moz.build b/toolkit/modules/moz.build index 9e08fe9f0..271c9b8f7 100644 --- a/toolkit/modules/moz.build +++ b/toolkit/modules/moz.build @@ -85,7 +85,6 @@ EXTRA_JS_MODULES += [ 'SelectContentHelper.jsm', 'SelectParentHelper.jsm', 'ServiceRequest.jsm', - 'Services.jsm', 'SessionRecorder.jsm', 'sessionstore/FormData.jsm', 'sessionstore/ScrollPosition.jsm', @@ -116,6 +115,7 @@ if CONFIG['MOZ_WIDGET_TOOLKIT'] in ('windows', 'gtk2', 'gtk3', 'cocoa'): EXTRA_PP_JS_MODULES += [ 'AppConstants.jsm', + 'Services.jsm', ] if 'Android' != CONFIG['OS_TARGET']: diff --git a/toolkit/moz.configure b/toolkit/moz.configure index 1a8c5b1bb..85a01e658 100644 --- a/toolkit/moz.configure +++ b/toolkit/moz.configure @@ -825,27 +825,3 @@ def skia_includes(skia, skia_gpu): return includes set_config('SKIA_INCLUDES', skia_includes) - -# Support various fuzzing options -# ============================================================== -with only_when('--enable-compile-environment'): - option('--enable-fuzzing', help='Enable fuzzing support') - - @depends('--enable-fuzzing') - def enable_fuzzing(value): - if value: - return True - - @depends(enable_fuzzing, - try_compile(body='__AFL_COMPILER;', - check_msg='for AFL compiler', - when='--enable-fuzzing')) - def enable_libfuzzer(fuzzing, afl): - if fuzzing and not afl: - return True - - set_config('FUZZING', enable_fuzzing) - set_define('FUZZING', enable_fuzzing) - - set_config('LIBFUZZER', enable_libfuzzer) - set_define('LIBFUZZER', enable_libfuzzer) diff --git a/toolkit/themes/linux/mozapps/jar.mn b/toolkit/themes/linux/mozapps/jar.mn index 2070dd6fd..8d1c12305 100644 --- a/toolkit/themes/linux/mozapps/jar.mn +++ b/toolkit/themes/linux/mozapps/jar.mn @@ -28,7 +28,7 @@ toolkit.jar: skin/classic/mozapps/update/updates.css (update/updates.css) skin/classic/mozapps/viewsource/viewsource.css (viewsource/viewsource.css) -#if MOZ_BUILD_APP == browser +#ifdef MOZ_PHOENIX [browser/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}] chrome.jar: #elif MOZ_SEPARATE_MANIFEST_FOR_THEME_OVERRIDES [extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}] chrome.jar: diff --git a/toolkit/themes/moz.build b/toolkit/themes/moz.build index 3d435ba71..4031f36b8 100644 --- a/toolkit/themes/moz.build +++ b/toolkit/themes/moz.build @@ -17,7 +17,11 @@ # mobile native UIs that do not use XUL for UI toolkit = CONFIG['MOZ_WIDGET_TOOLKIT'] -app = CONFIG['MOZ_BUILD_APP'] +if CONFIG['MOZ_PHOENIX']: + DEFINES['MOZ_PHOENIX'] = 1 + app = 'browser' +else: + app = CONFIG['MOZ_BUILD_APP'] if toolkit == 'cocoa': DIRS += ['osx'] diff --git a/toolkit/themes/osx/global/jar.mn b/toolkit/themes/osx/global/jar.mn index e979d4a8c..79bb062ab 100644 --- a/toolkit/themes/osx/global/jar.mn +++ b/toolkit/themes/osx/global/jar.mn @@ -145,7 +145,7 @@ toolkit.jar: skin/classic/global/tree/folder.png (tree/folder.png) skin/classic/global/tree/folder@2x.png (tree/folder@2x.png) -#if MOZ_BUILD_APP == browser +#ifdef MOZ_PHOENIX [browser/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}] chrome.jar: #elif MOZ_SEPARATE_MANIFEST_FOR_THEME_OVERRIDES [extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}] chrome.jar: diff --git a/toolkit/themes/osx/mozapps/jar.mn b/toolkit/themes/osx/mozapps/jar.mn index 3b58f1e4e..3f5717073 100644 --- a/toolkit/themes/osx/mozapps/jar.mn +++ b/toolkit/themes/osx/mozapps/jar.mn @@ -51,7 +51,7 @@ toolkit.jar: skin/classic/mozapps/xpinstall/xpinstallConfirm.css (extensions/xpinstallConfirm.css) skin/classic/mozapps/handling/handling.css (handling/handling.css) -#if MOZ_BUILD_APP == browser +#ifdef MOZ_PHOENIX [browser/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}] chrome.jar: #elif MOZ_SEPARATE_MANIFEST_FOR_THEME_OVERRIDES [extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}] chrome.jar: diff --git a/toolkit/themes/shared/non-mac.jar.inc.mn b/toolkit/themes/shared/non-mac.jar.inc.mn index 151749f72..859f1ba4a 100644 --- a/toolkit/themes/shared/non-mac.jar.inc.mn +++ b/toolkit/themes/shared/non-mac.jar.inc.mn @@ -123,7 +123,7 @@ skin/classic/mozapps/update/downloadButtons.png (../../windows/mozapps/update/downloadButtons.png) * skin/classic/mozapps/xpinstall/xpinstallConfirm.css (../../windows/mozapps/extensions/xpinstallConfirm.css) -#if MOZ_BUILD_APP == browser +#ifdef MOZ_PHOENIX [browser/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}] chrome.jar: #elif MOZ_SEPARATE_MANIFEST_FOR_THEME_OVERRIDES [extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}] chrome.jar: diff --git a/toolkit/themes/windows/global/jar.mn b/toolkit/themes/windows/global/jar.mn index 48613e794..7f0771020 100644 --- a/toolkit/themes/windows/global/jar.mn +++ b/toolkit/themes/windows/global/jar.mn @@ -90,7 +90,7 @@ toolkit.jar: skin/classic/global/tree/twisty-XP.svg (tree/twisty-XP.svg) skin/classic/global/tree/twisty-Vista78.svg (tree/twisty-Vista78.svg) -#if MOZ_BUILD_APP == browser +#ifdef MOZ_PHOENIX [browser/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}] chrome.jar: #elif MOZ_SEPARATE_MANIFEST_FOR_THEME_OVERRIDES [extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}] chrome.jar: diff --git a/toolkit/themes/windows/mozapps/jar.mn b/toolkit/themes/windows/mozapps/jar.mn index 9cf4acda3..901e93e4e 100644 --- a/toolkit/themes/windows/mozapps/jar.mn +++ b/toolkit/themes/windows/mozapps/jar.mn @@ -43,7 +43,7 @@ toolkit.jar: skin/classic/mozapps/profile/profileicon-XP.png (profile/profileicon-XP.png) skin/classic/mozapps/update/downloadButtons-XP.png (update/downloadButtons-XP.png) -#if MOZ_BUILD_APP == browser +#ifdef MOZ_PHOENIX [browser/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}] chrome.jar: #elif MOZ_SEPARATE_MANIFEST_FOR_THEME_OVERRIDES [extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}] chrome.jar: diff --git a/toolkit/xre/moz.build b/toolkit/xre/moz.build index dd15dc0bd..7ada19d41 100644 --- a/toolkit/xre/moz.build +++ b/toolkit/xre/moz.build @@ -136,7 +136,7 @@ DEFINES['GRE_MILESTONE'] = CONFIG['GRE_MILESTONE'] for var in ('APP_VERSION', 'APP_ID'): DEFINES[var] = CONFIG['MOZ_%s' % var] -if CONFIG['MOZ_BUILD_APP'] == 'browser': +if CONFIG['MOZ_PHOENIX']: DEFINES['MOZ_BUILD_APP_IS_BROWSER'] = True LOCAL_INCLUDES += [ |