68.14.5 - everything else

This commit is contained in:
Fedor 2024-11-25 17:24:41 +02:00
parent 1645bcf6a6
commit 22954acd32
1218 changed files with 49605 additions and 31438 deletions

View File

@ -133,17 +133,16 @@ media/webrtc/trunk/.*
mfbt/double-conversion/double-conversion/.*
mfbt/lz4.*
mobile/android/geckoview/src/thirdparty/.*
mobile/android/thirdparty/.*
modules/brotli/.*
modules/fdlibm/.*
modules/freetype2/.*
modules/libbz2/.*
modules/libmar/.*
modules/pdfium/.*
modules/woff2/.*
modules/xz-embedded/.*
modules/zlib/.*
mozglue/misc/decimal/.*
mozglue/tests/glibc_printf_tests/.*
netwerk/dns/nsIDNKitInterface.h
netwerk/sctp/src/.*
netwerk/srtp/src/.*

View File

@ -248,6 +248,7 @@ module.exports = {
"dom/security/test/general/**",
"dom/security/test/mixedcontentblocker/**",
"dom/security/test/sri/**",
"dom/security/test/referrer-policy/**",
"dom/serviceworkers/**",
"dom/smil/**",
"dom/tests/mochitest/**",

View File

@ -83,7 +83,7 @@ exclude =
# - http://pep8.readthedocs.io/en/latest/intro.html#configuration
ignore =
# These should be triaged and either fixed or moved to the list below.
F632, F633, F811, E117, W504, W605, W606,
F633, F811, E117, W504, W605, W606,
# These are intentionally disabled (not necessarily for good reason).
# F723: syntax error in type comment
# text contains quotes which breaks our custom JSON formatter

View File

@ -31,29 +31,26 @@ GARBAGE_DIRS += _javagen _profile staticlib
# subdirectories to remove. So we add to GARBAGE_DIRS once here, globally,
# for it to have the desired effect.
GARBAGE_DIRS += $(RUST_TARGET)
DIST_GARBAGE = config.cache config.log config.status* config-defs.h \
GARBAGE_DIRS += config.statusd
DIST_GARBAGE = config.cache config.log config.status config-defs.h \
config/autoconf.mk \
mozilla-config.h \
netwerk/necko-config.h xpcom/xpcom-config.h xpcom/xpcom-private.h \
xpcom/xpcom-config.h \
.mozconfig.mk
ifndef MOZ_PROFILE_USE
ifneq (mobile/android,$(MOZ_BUILD_APP))
$(MDDEPDIR)/buildid.h.stub $(MDDEPDIR)/source-repo.h.stub: FORCE
endif
source-repo.h: $(MDDEPDIR)/source-repo.h.stub
buildid.h: $(MDDEPDIR)/buildid.h.stub
endif
BUILD_BACKEND_FILES := $(addprefix backend.,$(addsuffix Backend,$(BUILD_BACKENDS)))
ifndef TEST_MOZBUILD
ifndef MOZ_PROFILE_USE
# We need to explicitly put BUILD_BACKEND_FILES here otherwise the rule in
# rules.mk doesn't run early enough.
$(RUNNABLE_TIERS) binaries:: CLOBBER $(BUILD_BACKEND_FILES)
endif
endif
ifdef JS_STANDALONE
.PHONY: CLOBBER
@ -115,33 +112,17 @@ install-test-files:
include $(topsrcdir)/build/moz-automation.mk
# dist and _tests should be purged during cleaning. However, we don't want them
# purged during PGO builds because they contain some auto-generated files.
ifneq ($(filter-out maybe_clobber_profiledbuild,$(MAKECMDGOALS)),)
# dist and _tests should be purged during cleaning.
GARBAGE_DIRS += dist _tests
endif
# Dummy rule for the cases below where we don't depend on dist/include
recurse_pre-export::
# Windows PGO builds don't perform a clean before the 2nd pass. So, we want
# to preserve content for the 2nd pass on Windows. Everywhere else, we always
# process the install manifests as part of export.
# For the binaries rule, not all the install manifests matter, so force only
# the interesting ones to be done.
ifdef MOZ_1TIER_PGO
ifndef NO_PROFILE_GUIDED_OPTIMIZE
ifneq ($(OS_ARCH)_$(GNU_CC), WINNT_)
recurse_pre-export:: install-manifests
binaries::
@$(MAKE) install-manifests install_manifests=dist/include
endif
endif
else # !MOZ_1TIER_PGO (normal build)
recurse_pre-export:: install-manifests
binaries::
@$(MAKE) install-manifests install_manifests=dist/include
endif
# Host binaries are not produced for macOS consumers: that is, there's
# no macOS-hosted job to produce them at this time. Therefore we
@ -152,8 +133,21 @@ recurse_artifact:
ifdef MOZ_ANDROID_FAT_AAR_ARCHITECTURES
recurse_android-fat-aar-artifact:
$(call py_action,fat_aar,$(MOZ_ANDROID_FAT_AAR_ARCHITECTURES) --distdir $(abspath $(DIST)/fat-aar))
endif # MOZ_ANDROID_FAT_AAR_ARCHITECTURES
$(call py_action,fat_aar,\
$(addprefix --armeabi-v7a $(MOZ_FETCHES_DIR)/,$(MOZ_ANDROID_FAT_AAR_ARMEABI_V7A)) \
$(addprefix --arm64-v8a $(MOZ_FETCHES_DIR)/,$(MOZ_ANDROID_FAT_AAR_ARM64_V8A)) \
$(addprefix --x86 $(MOZ_FETCHES_DIR)/,$(MOZ_ANDROID_FAT_AAR_X86)) \
$(addprefix --x86-64 $(MOZ_FETCHES_DIR)/,$(MOZ_ANDROID_FAT_AAR_X86_64)) \
--distdir $(abspath $(DIST)/fat-aar))
endif
ifeq ($(MOZ_BUILD_APP),mobile/android)
recurse_android-stage-package: stage-package
recurse_android-archive-geckoview:
GRADLE_INVOKED_WITHIN_MACH_BUILD=1 $(topsrcdir)/mach --log-no-times android archive-geckoview
endif
ifdef MOZ_WIDGET_TOOLKIT
ifdef ENABLE_TESTS
@ -165,37 +159,6 @@ endif
default all::
$(call BUILDSTATUS,TIERS $(TIERS) $(if $(MOZ_AUTOMATION),$(MOZ_AUTOMATION_TIERS)))
# PGO build target.
profiledbuild::
$(call BUILDSTATUS,TIERS pgo_profile_generate pgo_package pgo_profile pgo_clobber pgo_profile_use)
$(call BUILDSTATUS,TIER_START pgo_profile_generate)
$(MAKE) default MOZ_PROFILE_GENERATE=1 MOZ_LTO=
$(call BUILDSTATUS,TIER_FINISH pgo_profile_generate)
$(call BUILDSTATUS,TIER_START pgo_package)
$(MAKE) package
rm -f jarlog/en-US.log
$(call BUILDSTATUS,TIER_FINISH pgo_package)
$(call BUILDSTATUS,TIER_START pgo_profile)
JARLOG_FILE=jarlog/en-US.log $(PYTHON) $(topsrcdir)/build/pgo/profileserver.py
$(call BUILDSTATUS,TIER_FINISH pgo_profile)
$(call BUILDSTATUS,TIER_START pgo_clobber)
$(MAKE) maybe_clobber_profiledbuild
$(call BUILDSTATUS,TIER_FINISH pgo_clobber)
$(call BUILDSTATUS,TIER_START pgo_profile_use)
$(MAKE) default MOZ_PROFILE_USE=1 MOZ_1TIER_PGO=1
$(call BUILDSTATUS,TIER_FINISH pgo_profile_use)
# Change default target to PGO build if PGO is enabled.
ifdef MOZ_PGO
ifdef COMPILE_ENVIRONMENT
# If one of these is already set in addition to PGO we are doing a single phase
# of PGO in isolation, so don't override the default target.
ifeq (,$(MOZ_PROFILE_GENERATE)$(MOZ_PROFILE_USE))
OVERRIDE_DEFAULT_GOAL := profiledbuild
endif
endif
endif
include $(topsrcdir)/config/rules.mk
ifdef SCCACHE_VERBOSE_STATS
@ -261,19 +224,6 @@ update-packaging:
package-generated-sources:
$(call py_action,package_generated_sources,'$(DIST)/$(PKG_PATH)$(GENERATED_SOURCE_FILE_PACKAGE)')
# PGO support, but we can't do this test in client.mk
# No point in clobbering if PGO has been explicitly disabled.
ifdef NO_PROFILE_GUIDED_OPTIMIZE
maybe_clobber_profiledbuild:
else
maybe_clobber_profiledbuild: clean
ifneq (,$(findstring clang,$(CC_TYPE)))
$(LLVM_PROFDATA) merge -o $(DEPTH)/merged.profdata $(DEPTH)/*.profraw
endif
endif # NO_PROFILE_GUIDED_OPTIMIZE
.PHONY: maybe_clobber_profiledbuild
ifdef JS_STANDALONE
# Delegate js-specific rules to js
check-%:
@ -289,4 +239,9 @@ config/export:
endif
ifdef REBASE_DIR
default all::
$(REBASE_DIR)\Rebase.Exe -b 61d60000 $(DIST)/bin/mozglue.dll $(DIST)/bin/lgpllibs.dll $(DIST)/bin/nss3.dll $(DIST)/bin/xul.dll $(DIST)/bin/softokn3.dll $(DIST)/bin/freebl3.dll $(DIST)/bin/nssckbi.dll $(DIST)/bin/mozavutil.dll $(DIST)/bin/mozavcodec.dll $(DIST)/bin/libEGL.dll $(DIST)/bin/libGLESv2.dll $(DIST)/bin/qipcap.dll
endif
# There used to be build interdependencies here. They are now in config/recurse.mk

View File

@ -5,40 +5,43 @@ A browser for Windows XP based on Firefox 68.
![image](https://user-images.githubusercontent.com/19492771/152347482-f51058cd-2967-4bc5-80fd-5d269c328774.png)
**WARNING**
## WARNING
This browser does not run well on winxp SP2 and lower. If you do not want to install SP3, be ready for crashes and blue screens.
If you are on SP2 and lower, there is no need to post a screenshot from blue_screen_view. And i suggest to apply postready updates of 2019.
Some say that it runs fine on sp2 but it is no accurate data what to do.
**IF YOU GOT A BLUE SCREEN**
## IF YOU GOT A BLUE SCREEN
Don't post a screenshot of the blue screen, as the screen isn't useful for troubleshooting.
For more data look [#3](https://github.com/Feodor2/Mypal68/issues/3), and please do not make new duplicate reports.
Suddenly restart may be also this error depends of the settings
**IF YOU GOT A CRASH BUT WITHOUT BLUE SCREEN**
## IF YOU GOT A CRASH BUT WITHOUT BLUE SCREEN
Describe detailed how to reproduces the crash, do not forget to put the link.
Do not post pictures of the crash, this is useless and a waste.
If i don't reproduce the crash myself then you may to submit drwatson.log.
Also put your pc specs: cpu, ram and graphics card
If I don't reproduce the crash myself then you may to submit drwatson.log.
Drwatson log is usually inside All Users\Application Data\Microsoft\Dr Watson.
Minidump also may be usefull. Do not post any irrelevent logs.
An issue without details cosider as invalid.
**IF YOU WANT REPORT A SITE**
## IF YOU WANT REPORT A SITE
Report [there](https://github.com/Feodor2/Mypal68/issues/228).
Put the actual link to the site
Notice that i never would look to the site which requires the login, including any goolag sites. Please try to find what feature is missig by yourself.
Then report like for site 'x' is missing feature 'y'
Notice that I never would look to the site which requires the login, including any goolag sites.
Please try to find what feature is missig by yourself by checking on newer firefoxes and find first version where it works.
Actually I do not look every site, no time for this.
**YOU MAY DONATE**
## YOU MAY DONATE
But only by crypto [Look here](https://github.com/Feodor2/Mypal68/issues/84)
**MY MIRROR PAGES**
## MY MIRROR PAGES
https://codeberg.org/Theodor2/Mypal68
https://codeberg.org/Theodor2/Mypal68 \
https://notabug.org/Theodor/Mypal68

View File

@ -122,7 +122,7 @@ void nsCoreUtils::DispatchMouseEvent(EventMessage aMessage, int32_t aX,
event.mRefPoint = LayoutDeviceIntPoint(aX, aY);
event.mClickCount = 1;
event.mButton = MouseButton::eLeft;
event.mButton = MouseButton::ePrimary;
event.mTime = PR_IntervalNow();
event.mInputSource = dom::MouseEvent_Binding::MOZ_SOURCE_UNKNOWN;

View File

@ -28,7 +28,6 @@
testCSSAttrs("display_mozstack");
testCSSAttrs("display_mozdeck");
testCSSAttrs("display_mozpopup");
testCSSAttrs("display_mozgroupbox");
SimpleTest.finish();
}
@ -61,7 +60,6 @@
<vbox id="display_mozstack" style="display: -moz-stack;" role="img"/>
<vbox id="display_mozdeck" style="display: -moz-deck;" role="img"/>
<vbox id="display_mozpopup" style="display: -moz-popup;" role="img"/>
<vbox id="display_mozgroupbox" style="display: -moz-groupbox;" role="img"/>
</hbox>
</window>

6
aclocal.m4 vendored
View File

@ -7,9 +7,6 @@ builtin(include, build/autoconf/hotfixes.m4)dnl
builtin(include, build/autoconf/hooks.m4)dnl
builtin(include, build/autoconf/config.status.m4)dnl
builtin(include, build/autoconf/toolchain.m4)dnl
builtin(include, build/autoconf/nspr.m4)dnl
builtin(include, build/autoconf/nspr-build.m4)dnl
builtin(include, build/autoconf/nss.m4)dnl
builtin(include, build/autoconf/pkg.m4)dnl
builtin(include, build/autoconf/codeset.m4)dnl
builtin(include, build/autoconf/altoptions.m4)dnl
@ -19,11 +16,8 @@ builtin(include, build/autoconf/compiler-opts.m4)dnl
builtin(include, build/autoconf/expandlibs.m4)dnl
builtin(include, build/autoconf/arch.m4)dnl
builtin(include, build/autoconf/android.m4)dnl
builtin(include, build/autoconf/zlib.m4)dnl
builtin(include, build/autoconf/icu.m4)dnl
builtin(include, build/autoconf/clang-plugin.m4)dnl
builtin(include, build/autoconf/alloc.m4)dnl
builtin(include, build/autoconf/ios.m4)dnl
builtin(include, build/autoconf/sanitize.m4)dnl
MOZ_PROG_CHECKMSYS()

View File

@ -18,7 +18,7 @@ with Files("PluginChild.jsm"):
BUG_COMPONENT = ("Core", "Plug-ins")
with Files("WebRTCChild.jsm"):
BUG_COMPONENT = ("Firefox", "Device Permissions")
BUG_COMPONENT = ("Firefox", "Site Permissions")
FINAL_TARGET_FILES.actors += [
'AboutReaderChild.jsm',

View File

@ -10,7 +10,6 @@
#if defined(MOZ_ASAN) || defined(MOZ_TSAN)
/llvm-symbolizer
#endif
/pingsender
/pk12util
/ssltunnel
/webrtc-gtest

View File

@ -1,4 +1,4 @@
WIN32_MODULE_COMPANYNAME=Feodor2
WIN32_MODULE_COMPANYNAME=Theodor2
WIN32_MODULE_COPYRIGHT=©Mypal and Mozilla Developers; available under the MPL 2 license.
WIN32_MODULE_PRODUCTVERSION=@MOZ_APP_WINVERSION@
WIN32_MODULE_PRODUCTVERSION_STRING=@MOZ_APP_VERSION@

View File

@ -67,7 +67,6 @@ if CONFIG['CC_TYPE'] == 'clang-cl':
if CONFIG['OS_ARCH'] == 'WINNT':
RCINCLUDE = 'splash.rc'
DEFINES['MOZ_PHOENIX'] = True
DIRS += [
# 'winlauncher',
]
@ -118,9 +117,6 @@ if CONFIG['OS_ARCH'] == 'WINNT' and CONFIG['CC_TYPE'] not in ('clang', 'gcc'):
DisableStlWrapping()
if CONFIG['MOZ_LINKER']:
OS_LIBS += CONFIG['MOZ_ZLIB_LIBS']
if CONFIG['HAVE_CLOCK_MONOTONIC']:
OS_LIBS += CONFIG['REALTIME_LIBS']

View File

@ -394,7 +394,7 @@ pref("browser.tabs.insertRelatedAfterCurrent", true);
// for non-related links. Note that if this is set to true, it will trump
// the value of browser.tabs.insertRelatedAfterCurrent.
pref("browser.tabs.insertAfterCurrent", false);
pref("browser.tabs.warnOnClose", true);
pref("browser.tabs.warnOnClose", 1);
pref("browser.tabs.warnOnCloseOtherTabs", true);
pref("browser.tabs.warnOnOpen", true);
pref("browser.tabs.maxOpenBeforeWarn", 15);
@ -515,7 +515,6 @@ pref("privacy.history.custom", false);
// 5 - Last 5 minutes
// 6 - Last 24 hours
pref("privacy.sanitize.timeSpan", 1);
pref("privacy.sanitize.sanitizeOnShutdown", false);
pref("privacy.sanitize.migrateFx3Prefs", false);
@ -524,12 +523,6 @@ pref("privacy.panicButton.enabled", true);
// Time until temporary permissions expire, in ms
pref("privacy.temporary_permission_expire_time_ms", 3600000);
// If Accept-Language should be spoofed by en-US
// 0 - will prompt
// 1 - don't spoof
// 2 - spoof
pref("privacy.spoof_english", 0);
pref("network.proxy.share_proxy_settings", false); // use the same proxy settings for all protocols
// simple gestures support
@ -660,16 +653,6 @@ pref("plugins.show_infobar", false);
pref("plugin.default.state", 1);
#endif
// Plugins bundled in XPIs are enabled by default.
pref("plugin.defaultXpi.state", 2);
// Flash is Click-to-Activate by default on all channels. Disabled for ARM builds.
#if defined(_ARM64_) && defined(XP_WIN)
pref("plugin.state.flash", 0);
#else
pref("plugin.state.flash", 1);
#endif
// Prefer HTML5 video over Flash content, and don't
// load plugin instances with no src declared.
// These prefs are documented in details on all.js.
@ -1121,7 +1104,7 @@ pref("services.sync.prefs.sync.browser.sessionstore.restore_on_demand", true);
pref("services.sync.prefs.sync.browser.startup.homepage", true);
pref("services.sync.prefs.sync.browser.startup.page", true);
pref("services.sync.prefs.sync.browser.tabs.loadInBackground", true);
pref("services.sync.prefs.sync.browser.tabs.warnOnClose", true);
pref("services.sync.prefs.sync.browser.tabs.warnOnClose", 1);
pref("services.sync.prefs.sync.browser.tabs.warnOnOpen", true);
pref("services.sync.prefs.sync.browser.taskbar.previews.enable", true);
pref("services.sync.prefs.sync.browser.urlbar.matchBuckets", true);
@ -1535,7 +1518,7 @@ pref("dom.ipc.cpows.forbid-unsafe-from-browser", true);
// detection).
pref("dom.ipc.processHangMonitor", false);
#if defined(NIGHTLY_BUILD) && defined(XP_WIN)
#if defined(XP_WIN)
// Allows us to deprioritize the processes of background tabs at an OS level
pref("dom.ipc.processPriorityManager.enabled", true);
#endif

View File

@ -1407,13 +1407,14 @@ function _loadURI(browser, uri, params = {}) {
}
let {
flags = Ci.nsIWebNavigation.LOAD_FLAGS_NONE,
triggeringPrincipal,
referrerInfo,
postData,
userContextId,
csp,
} = params || {};
let loadFlags = params.loadFlags || params.flags ||
Ci.nsIWebNavigation.LOAD_FLAGS_NONE;
if (!triggeringPrincipal) {
throw new Error("Must load with a triggering Principal");
@ -1429,7 +1430,7 @@ function _loadURI(browser, uri, params = {}) {
uri,
gMultiProcessBrowser,
gFissionBrowser,
flags
loadFlags
);
if (uriObject && handleUriInChrome(browser, uriObject)) {
// If we've handled the URI in Chrome then just return here.
@ -1448,7 +1449,7 @@ function _loadURI(browser, uri, params = {}) {
let loadURIOptions = {
triggeringPrincipal,
csp,
loadFlags: flags,
loadFlags,
referrerInfo,
postData,
};
@ -1479,7 +1480,7 @@ function _loadURI(browser, uri, params = {}) {
triggeringPrincipal: triggeringPrincipal
? E10SUtils.serializePrincipal(triggeringPrincipal)
: null,
flags,
flags: loadFlags,
referrerInfo: E10SUtils.serializeReferrerInfo(referrerInfo),
remoteType: requiredRemoteType,
postData,

View File

@ -51,7 +51,7 @@ with Files("test/performance/browser_appmenu.js"):
BUG_COMPONENT = ("Firefox", "Menus")
with Files("test/permissions/**"):
BUG_COMPONENT = ("Firefox", "Site Identity and Permission Panels")
BUG_COMPONENT = ("Firefox", "Site Permissions")
with Files("test/plugins/**"):
BUG_COMPONENT = ("Core", "Plug-ins")
@ -60,16 +60,16 @@ with Files("test/popupNotifications/**"):
BUG_COMPONENT = ("Toolkit", "Notifications and Alerts")
with Files("test/popups/**"):
BUG_COMPONENT = ("Firefox", "Site Identity and Permission Panels")
BUG_COMPONENT = ("Firefox", "Site Permissions")
with Files("test/referrer/**"):
BUG_COMPONENT = ("Core", "Document Navigation")
BUG_COMPONENT = ("Core", "DOM: Navigation")
with Files("test/sanitize/**"):
BUG_COMPONENT = ("Toolkit", "Data Sanitization")
with Files("test/siteIdentity/**"):
BUG_COMPONENT = ("Firefox", "Site Identity and Permission Panels")
BUG_COMPONENT = ("Firefox", "Site Identity")
with Files("test/sidebar/**"):
BUG_COMPONENT = ("Firefox", "General")
@ -96,7 +96,7 @@ with Files("test/touch/**"):
BUG_COMPONENT = ("Firefox", "General")
with Files("test/trackingUI/**"):
BUG_COMPONENT = ("Firefox", "Tracking Protection")
BUG_COMPONENT = ("Firefox", "Protections UI")
with Files("test/webextensions/**"):
BUG_COMPONENT = ("WebExtensions", "Untriaged")
@ -150,7 +150,7 @@ with Files("contentSearch*"):
BUG_COMPONENT = ("Firefox", "Search")
with Files("hiddenWindow.xul"):
BUG_COMPONENT = ("Firefox", "Device Permissions")
BUG_COMPONENT = ("Firefox", "Site Permissions")
with Files("macWindow.inc.xul"):
BUG_COMPONENT = ("Firefox", "Shell Integration")
@ -165,4 +165,4 @@ with Files("webext-panels*"):
BUG_COMPONENT = ("WebExtensions", "Frontend")
with Files("webrtcIndicator*"):
BUG_COMPONENT = ("Firefox", "Device Permissions")
BUG_COMPONENT = ("Firefox", "Site Permissions")

View File

@ -2938,11 +2938,12 @@
},
warnAboutClosingTabs(tabsToClose, aCloseTabs) {
const pref =
aCloseTabs == this.closingTabsEnum.ALL
? "browser.tabs.warnOnClose"
: "browser.tabs.warnOnCloseOtherTabs";
var shouldPrompt = Services.prefs.getBoolPref(pref);
var shouldPrompt;
if (aCloseTabs == this.closingTabsEnum.ALL) {
shouldPrompt = Services.prefs.getIntPref("browser.tabs.warnOnClose") <= tabsToClose;
} else {
shouldPrompt = Services.prefs.getBoolPref("browser.tabs.warnOnCloseOtherTabs");
}
if (!shouldPrompt) {
return true;
}

View File

@ -1,3 +1,5 @@
[DEFAULT]
[browser_file_menu_import_wizard.js]
[browser_window_menu_list.js]
skip-if = os != "mac" # Mac only feature

View File

@ -0,0 +1,45 @@
/* Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ */
"use strict";
add_task(async function test_window_menu_list() {
// This title is different depending on the build. For example, it's "Nightly"
// for a local build, "Mozilla Firefox" for an official release build.
const windowTitle = window.document.title;
await checkWindowMenu([windowTitle, "Browser chrome tests"]);
let newWindow = await BrowserTestUtils.openNewBrowserWindow();
await checkWindowMenu([windowTitle, "Browser chrome tests", windowTitle]);
await BrowserTestUtils.closeWindow(newWindow);
});
async function checkWindowMenu(labels) {
let menu = document.querySelector("#windowMenu");
// We can't toggle menubar items on OSX, so mocking instead.
await new Promise(resolve => {
menu.addEventListener("popupshown", resolve, { once: true });
menu.dispatchEvent(new MouseEvent("popupshowing"));
menu.dispatchEvent(new MouseEvent("popupshown"));
});
let menuitems = [...menu.querySelectorAll("menuseparator ~ menuitem")];
is(menuitems.length, labels.length, "Correct number of windows in the menu");
is(
menuitems.map(item => item.label).join(","),
labels.join(","),
"Correct labels on menuitems"
);
for (let menuitem of menuitems) {
ok(
menuitem instanceof customElements.get("menuitem"),
"sibling is menuitem"
);
}
// We can't toggle menubar items on OSX, so mocking instead.
await new Promise(resolve => {
menu.addEventListener("popuphidden", resolve, { once: true });
menu.dispatchEvent(new MouseEvent("popuphiding"));
menu.dispatchEvent(new MouseEvent("popuphidden"));
});
}

View File

@ -95,8 +95,8 @@ tags = blocklist
[browser_globalplugin_crashinfobar.js]
skip-if = !crashreporter
[browser_pluginCrashCommentAndURL.js]
skip-if = !crashreporter || (processor == 'aarch64' && os == 'win') # aarch64 due to 1538785
skip-if = !crashreporter
[browser_pluginCrashReportNonDeterminism.js]
skip-if = !crashreporter || (processor == 'aarch64' && os == 'win') # aarch64 due to 1538785
skip-if = !crashreporter
[browser_private_clicktoplay.js]
[browser_subframe_access_hidden_plugins.js]

View File

@ -49,7 +49,7 @@ function createHostCookie(host, originAttributes) {
false,
Date.now() + 24000 * 60 * 60,
originAttributes,
Ci.nsICookie.SAMESITE_UNSET
Ci.nsICookie.SAMESITE_NONE
);
}
@ -64,7 +64,7 @@ function createDomainCookie(host, originAttributes) {
false,
Date.now() + 24000 * 60 * 60,
originAttributes,
Ci.nsICookie.SAMESITE_UNSET
Ci.nsICookie.SAMESITE_NONE
);
}

View File

@ -25,10 +25,10 @@ browser.jar:
content/browser/aboutTabCrashed.xhtml (content/aboutTabCrashed.xhtml)
* content/browser/browser.css (content/browser.css)
content/browser/browser.js (content/browser.js)
#ifdef MOZ_BROWSER_XHTML
* content/browser/browser.xhtml (content/browser.xhtml)
#else
#ifdef MOZ_BROWSER_XUL
* content/browser/browser.xul (content/browser.xul)
#else
* content/browser/browser.xhtml (content/browser.xhtml)
#endif
content/browser/browser-addons.js (content/browser-addons.js)
content/browser/browser-allTabsMenu.js (content/browser-allTabsMenu.js)

View File

@ -57,8 +57,8 @@ BROWSER_CHROME_MANIFESTS += [
DEFINES['MOZ_APP_VERSION'] = CONFIG['MOZ_APP_VERSION']
DEFINES['MOZ_APP_VERSION_DISPLAY'] = CONFIG['MOZ_APP_VERSION_DISPLAY']
if CONFIG['MOZ_BROWSER_XHTML']:
DEFINES['MOZ_BROWSER_XHTML'] = CONFIG['MOZ_BROWSER_XHTML']
if CONFIG['MOZ_BROWSER_XUL']:
DEFINES['MOZ_BROWSER_XUL'] = CONFIG['MOZ_BROWSER_XUL']
DEFINES['APP_LICENSE_BLOCK'] = '%s/content/overrides/app-license.html' % SRCDIR

View File

@ -426,12 +426,10 @@ XPCOMUtils.defineLazyModuleGetters(this, {
Corroborate: "resource://gre/modules/Corroborate.jsm",
DateTimePickerParent: "resource://gre/modules/DateTimePickerParent.jsm",
ExtensionsUI: "resource:///modules/ExtensionsUI.jsm",
FileSource: "resource://gre/modules/L10nRegistry.jsm",
FxAccounts: "resource://gre/modules/FxAccounts.jsm",
HomePage: "resource:///modules/HomePage.jsm",
HybridContentTelemetry: "resource://gre/modules/HybridContentTelemetry.jsm",
Integration: "resource://gre/modules/Integration.jsm",
L10nRegistry: "resource://gre/modules/L10nRegistry.jsm",
LiveBookmarkMigrator: "resource:///modules/LiveBookmarkMigrator.jsm",
NewTabUtils: "resource://gre/modules/NewTabUtils.jsm",
ObjectUtils: "resource://gre/modules/ObjectUtils.jsm",
@ -1046,22 +1044,6 @@ BrowserGlue.prototype = {
PdfJs.earlyInit();
}
// Initialize the default l10n resource sources for L10nRegistry.
let locales = Services.locale.packagedLocales;
const greSource = new FileSource(
"toolkit",
locales,
"resource://gre/localization/{locale}/"
);
L10nRegistry.registerSource(greSource);
const appSource = new FileSource(
"app",
locales,
"resource://app/localization/{locale}/"
);
L10nRegistry.registerSource(appSource);
// check if we're in safe mode
if (Services.appinfo.inSafeMode) {
Services.ww.openWindow(
@ -2009,7 +1991,7 @@ BrowserGlue.prototype = {
return;
}
// Otherwise, we check browser.tabs.warnOnClose
} else if (!Services.prefs.getBoolPref("browser.tabs.warnOnClose")) {
} else if (Services.prefs.getIntPref("browser.tabs.warnOnClose") >= pagecount) {
return;
}
@ -2563,11 +2545,22 @@ BrowserGlue.prototype = {
}
},
_migrateXULStoreForDocument(fromURL, toURL) {
Array.from(Services.xulStore.getIDsEnumerator(fromURL)).forEach((id) => {
Array.from(Services.xulStore.getAttributeEnumerator(fromURL, id)).forEach(
attr => {
let value = Services.xulStore.getValue(fromURL, id, attr);
Services.xulStore.setValue(toURL, id, attr, value);
}
);
});
},
// eslint-disable-next-line complexity
_migrateUI: function BG__migrateUI() {
// Use an increasing number to keep track of the current migration state.
// Completely unrelated to the current Firefox release number.
const UI_VERSION = 81;
const UI_VERSION = 82;
const BROWSER_DOCURL = AppConstants.BROWSER_CHROME_URL;
let currentUIVersion;
@ -2912,6 +2905,11 @@ BrowserGlue.prototype = {
}
}
if (currentUIVersion < 82) {
this._migrateXULStoreForDocument("chrome://browser/content/browser.xul",
"chrome://browser/content/browser.xhtml");
}
// Update the migration version.
Services.prefs.setIntPref("browser.migration.version", UI_VERSION);
},

View File

@ -24,7 +24,8 @@ skip-if = os != 'mac'
[browser_policy_cookie_settings.js]
[browser_policy_disable_feedback_commands.js]
[browser_policy_disable_flash_plugin.js]
skip-if = (processor == 'aarch64' && os == 'win') # aarch64 due to 1538785
skip-if = (processor == 'aarch64' && os == 'win')
reason = Plugins are not supported on Windows/AArch64
[browser_policy_disable_fxaccounts.js]
skip-if = (verify && debug && (os == 'mac'))
[browser_policy_disable_masterpassword.js]

View File

@ -17,7 +17,7 @@ add_task(async function setup() {
false,
expiry,
{},
Ci.nsICookie.SAMESITE_UNSET
Ci.nsICookie.SAMESITE_NONE
);
Services.cookies.add(
HOSTNAME_DOMAIN,
@ -29,7 +29,7 @@ add_task(async function setup() {
false,
expiry,
{},
Ci.nsICookie.SAMESITE_UNSET
Ci.nsICookie.SAMESITE_NONE
);
Services.cookies.add(
ORIGIN_DOMAIN,
@ -41,7 +41,7 @@ add_task(async function setup() {
false,
expiry,
{},
Ci.nsICookie.SAMESITE_UNSET
Ci.nsICookie.SAMESITE_NONE
);
Services.cookies.add(
ORIGIN_DOMAIN,
@ -53,7 +53,7 @@ add_task(async function setup() {
false,
expiry,
{},
Ci.nsICookie.SAMESITE_UNSET
Ci.nsICookie.SAMESITE_NONE
);
Services.cookies.add(
"example.net",
@ -65,7 +65,7 @@ add_task(async function setup() {
false,
expiry,
{},
Ci.nsICookie.SAMESITE_UNSET
Ci.nsICookie.SAMESITE_NONE
);
await setupPolicyEngineWithJson({
policies: {

View File

@ -159,7 +159,7 @@ disabled = bug 1438663
[browser_ext_popup_sendMessage.js]
[browser_ext_popup_shutdown.js]
[browser_ext_port_disconnect_on_crash.js]
skip-if = !e10s || !crashreporter || (processor == 'aarch64' && os == 'win') # the tab's process is killed during the test. Without e10s the parent process would die too, aarch64 due to 1538785
skip-if = !e10s || !crashreporter # the tab's process is killed during the test. Without e10s the parent process would die too
[browser_ext_port_disconnect_on_window_close.js]
[browser_ext_runtime_openOptionsPage.js]
[browser_ext_runtime_openOptionsPage_uninstall.js]

View File

@ -1,5 +1,11 @@
"use strict";
const { AddonTestUtils } = ChromeUtils.import(
"resource://testing-common/AddonTestUtils.jsm"
);
AddonTestUtils.initMochitest(this);
add_task(async function testExecuteScript() {
let { MessageChannel } = ChromeUtils.import(
"resource://gre/modules/MessageChannel.jsm"
@ -223,3 +229,90 @@ add_task(async function testInsertCSS_cleanup() {
BrowserTestUtils.removeTab(tab);
});
// Verify that no removeSheet/removeSheetUsingURIString errors are logged while
// cleaning up css injected using a manifest content script or tabs.insertCSS.
add_task(async function test_csscode_cleanup_on_closed_windows() {
let extension = ExtensionTestUtils.loadExtension({
manifest: {
permissions: ["http://example.com/*"],
content_scripts: [
{
matches: ["http://example.com/*"],
css: ["content.css"],
run_at: "document_start",
},
],
},
files: {
"content.css": "body { min-width: 15px; }",
},
async background() {
browser.runtime.onConnect.addListener(port => {
port.onDisconnect.addListener(() => {
browser.test.sendMessage("port-disconnected");
});
browser.test.sendMessage("port-connected");
});
await browser.tabs.create({
url: "http://example.com/",
active: true,
});
await browser.tabs.insertCSS({
code: "body { max-width: 50px; }",
});
// Create a port, as a way to detect when the content script has been
// destroyed and any removeSheet error already collected (if it has been
// raised during the content scripts cleanup).
await browser.tabs.executeScript({
code: `(${function() {
const { maxWidth, minWidth } = window.getComputedStyle(document.body);
browser.test.sendMessage("body-styles", { maxWidth, minWidth });
browser.runtime.connect();
}})();`,
});
},
});
await extension.startup();
let { messages } = await AddonTestUtils.promiseConsoleOutput(async () => {
info("Waiting for content scripts to be injected");
const { maxWidth, minWidth } = await extension.awaitMessage("body-styles");
is(maxWidth, "50px", "tabs.insertCSS applied");
is(minWidth, "15px", "manifest.content_scripts CSS applied");
await extension.awaitMessage("port-connected");
const tab = gBrowser.selectedTab;
info("Close tab and wait for content script port to be disconnected");
BrowserTestUtils.removeTab(tab);
await extension.awaitMessage("port-disconnected");
});
// Look for nsIDOMWindowUtils.removeSheet and
// nsIDOMWindowUtils.removeSheetUsingURIString errors.
messages = messages.filter(
m =>
m.errorMessage &&
m.errorMessage.includes(
"(NS_ERROR_FAILURE) [nsIDOMWindowUtils.removeSheet"
)
);
AddonTestUtils.checkMessages(
messages,
{
forbidden: [/nsIDOMWindowUtils.removeSheet/],
},
"Expect no remoteSheet errors"
);
await extension.unload();
});

View File

@ -35,7 +35,7 @@ function addCookie(cookie) {
false,
Date.now() / 1000 + 10000,
{},
Ci.nsICookie.SAMESITE_UNSET
Ci.nsICookie.SAMESITE_NONE
);
ok(
Services.cookies.cookieExists(cookie.host, cookie.path, cookie.name, {}),

View File

@ -390,7 +390,7 @@ async function GetCookiesResource(aProfileFolder) {
false,
parseInt(expiresUtc),
{},
Ci.nsICookie.SAMESITE_UNSET
Ci.nsICookie.SAMESITE_NONE
);
} catch (e) {
Cu.reportError(e);

View File

@ -727,7 +727,7 @@ Cookies.prototype = {
false, // session
expireTime,
{},
Ci.nsICookie.SAMESITE_UNSET
Ci.nsICookie.SAMESITE_NONE
);
}
},

View File

@ -142,7 +142,7 @@ class TestFirefoxRefresh(MarionetteTestCase):
// Expire in 15 minutes:
let expireTime = Math.floor(Date.now() / 1000) + 15 * 60;
Services.cookies.add(arguments[0], arguments[1], arguments[2], arguments[3],
true, false, false, expireTime, {}, Ci.nsICookie.SAMESITE_UNSET);
true, false, false, expireTime, {}, Ci.nsICookie.SAMESITE_NONE);
""", script_args=(self._cookieHost, self._cookiePath, self._cookieName, self._cookieValue))
def createSession(self):

View File

@ -15,7 +15,7 @@ with Files("tests/browser/browser_bug538331.js"):
BUG_COMPONENT = ("Toolkit", "Application Update")
with Files("tests/browser/browser_contentpermissionprompt.js"):
BUG_COMPONENT = ("Firefox", "Site Identity and Permission Panels")
BUG_COMPONENT = ("Firefox", "Site Permissions")
with Files("tests/unit/test_distribution.js"):
BUG_COMPONENT = ("Firefox", "Distributions")

View File

@ -117,8 +117,8 @@ Preferences.addAll([
- true if display should switch to a new tab which has been opened from a
link, false if display shouldn't switch
browser.tabs.warnOnClose
- true if when closing a window with multiple tabs the user is warned and
allowed to cancel the action, false to just close the window
- >0 if when closing a window with multiple tabs the user is warned and
allowed to cancel the action, 0 to just close the window
browser.tabs.warnOnOpen
- true if the user should be warned if he attempts to open a lot of tabs at
once (e.g. a large folder of bookmarks), false otherwise
@ -128,7 +128,7 @@ Preferences.addAll([
{ id: "browser.link.open_newwindow", type: "int" },
{ id: "browser.tabs.loadInBackground", type: "bool", inverted: true },
{ id: "browser.tabs.warnOnClose", type: "bool" },
{ id: "browser.tabs.warnOnClose", type: "int" },
{ id: "browser.tabs.warnOnOpen", type: "bool" },
{ id: "browser.sessionstore.restore_on_demand", type: "bool" },
{ id: "browser.ctrlTab.recentlyUsedOrder", type: "bool" },
@ -1038,8 +1038,8 @@ var gMainPane = {
* browser.tabs.loadInBackground - bool
* True - Whether browser should switch to a new tab opened from a link.
* browser.tabs.warnOnClose - bool
* True - If when closing a window with multiple tabs the user is warned and
* allowed to cancel the action, false to just close the window.
* >0 - If when closing a window with multiple tabs the user is warned and
* allowed to cancel the action, 0 to just close the window.
* browser.tabs.warnOnOpen - bool
* True - Whether the user should be warned when trying to open a lot of
* tabs at once (e.g. a large folder of bookmarks), allowing to

View File

@ -218,7 +218,7 @@ add_task(async function() {
false,
Date.now() + 1000 * 60 * 60,
{},
Ci.nsICookie.SAMESITE_UNSET
Ci.nsICookie.SAMESITE_NONE
);
Services.cookies.add(
uri.host,
@ -230,7 +230,7 @@ add_task(async function() {
false,
Date.now() + 1000 * 60 * 60,
{},
Ci.nsICookie.SAMESITE_UNSET
Ci.nsICookie.SAMESITE_NONE
);
Services.cookies.add(
uri2.host,
@ -242,7 +242,7 @@ add_task(async function() {
false,
Date.now() + 1000 * 60 * 60,
{},
Ci.nsICookie.SAMESITE_UNSET
Ci.nsICookie.SAMESITE_NONE
);
// Ensure that private browsing cookies are ignored.
@ -256,7 +256,7 @@ add_task(async function() {
false,
Date.now() + 1000 * 60 * 60,
{ privateBrowsingId: 1 },
Ci.nsICookie.SAMESITE_UNSET
Ci.nsICookie.SAMESITE_NONE
);
// Get the exact creation date from the cookies (to avoid intermittents

View File

@ -423,10 +423,10 @@ HistoryListener.prototype = {
// new URL that was passed to loadURI(). The new load will cause a
// STATE_START notification to be sent and the ProgressListener will then
// notify the parent and do the rest.
let flags = Ci.nsIWebNavigation.LOAD_FLAGS_ALLOW_THIRD_PARTY_FIXUP;
let loadFlags = Ci.nsIWebNavigation.LOAD_FLAGS_ALLOW_THIRD_PARTY_FIXUP;
let loadURIOptions = {
triggeringPrincipal: Services.scriptSecurityManager.getSystemPrincipal(),
loadFlags: flags,
loadFlags,
};
this.webNavigation.loadURI(newURI.spec, loadURIOptions);
},

View File

@ -79,7 +79,7 @@ var SessionCookiesInternal = {
/* isSession = */ true,
expiry,
cookie.originAttributes || {},
Ci.nsICookie.SAMESITE_UNSET
Ci.nsICookie.SAMESITE_NONE
);
} catch (ex) {
Cu.reportError(

View File

@ -15,7 +15,7 @@ function addCookie(scheme, secure = false) {
/* isSession = */ true,
MAX_EXPIRY,
/* originAttributes = */ {},
Ci.nsICookie.SAMESITE_UNSET
Ci.nsICookie.SAMESITE_NONE
);
return cookie;
}

View File

@ -13,6 +13,7 @@
#include "nsIContent.h"
#include "nsIImageLoadingContent.h"
#include "nsIOutputStream.h"
#include "nsIPrefService.h"
#include "nsIStringBundle.h"
#include "nsNetUtil.h"
#include "nsServiceManagerUtils.h"
@ -27,6 +28,7 @@
#include "nsXULAppAPI.h"
#include "mozilla/WindowsVersion.h"
#include "mozilla/dom/Element.h"
#include "mozilla/gfx/2D.h"
#include "windows.h"
#include "shellapi.h"

View File

@ -1,5 +1,3 @@
export MOZ_PGO=1
. "$topsrcdir/browser/config/mozconfigs/linux32/common-opt"
ac_add_options --enable-official-branding

View File

@ -14,6 +14,9 @@ export MOZILLA_OFFICIAL=1
# Package js shell.
export MOZ_PACKAGE_JSSHELL=1
# Keep basic GDB symbols around in debug builds
ac_add_options STRIP_FLAGS=--strip-debug
ac_add_options --with-branding=browser/branding/nightly
. "$topsrcdir/build/mozconfig.common.override"

View File

@ -1,5 +1,3 @@
export MOZ_PGO=1
. "$topsrcdir/browser/config/mozconfigs/linux32/common-opt"
ac_add_options --with-branding=browser/branding/aurora

View File

@ -2,4 +2,10 @@
ac_add_options --with-branding=browser/branding/nightly
# STRIP_FLAGS is only valid for builds that strip; valgrind builds disable stripping
if [ -z "$USE_VALGRIND" ]; then
# Keep basic GDB symbols around in Nightly builds
ac_add_options STRIP_FLAGS=--strip-debug
fi
. "$topsrcdir/build/mozconfig.common.override"

View File

@ -1,6 +1,5 @@
. $topsrcdir/browser/config/mozconfigs/linux32/nightly
mk_add_options "export MOZ_AUTOMATION_BUILD_SYMBOLS=0"
mk_add_options "export MOZ_AUTOMATION_PACKAGE_TESTS=0"
mk_add_options "export MOZ_AUTOMATION_PACKAGE_GENERATED_SOURCES=0"
mk_add_options "export MOZ_AUTOMATION_L10N_CHECK=0"

View File

@ -1,8 +1,6 @@
# This make file should be identical to the beta mozconfig, apart from the
# safeguard below
export MOZ_PGO=1
. "$topsrcdir/browser/config/mozconfigs/linux32/common-opt"
ac_add_options --enable-official-branding

View File

@ -1,3 +1,5 @@
USE_VALGRIND=1
. $topsrcdir/browser/config/mozconfigs/linux32/nightly
ac_add_options --enable-valgrind

View File

@ -1,5 +1,3 @@
. "$topsrcdir/build/mozconfig.pgo"
. "$topsrcdir/browser/config/mozconfigs/linux64/common-opt"
ac_add_options --enable-official-branding

View File

@ -12,6 +12,6 @@ ac_add_options --disable-profiling
ac_add_options --disable-warnings-as-errors
ac_add_options --enable-coverage
export LDFLAGS="--coverage -L$topsrcdir/clang/lib/clang/8.0.0/lib/linux/"
export LDFLAGS="--coverage -L$MOZ_FETCHES_DIR/clang/lib/clang/8.0.0/lib/linux/"
export LIBS="-lclang_rt.profile-x86_64"
export RUSTFLAGS="-Ccodegen-units=1 -Zprofile -Zno-landing-pads -Clink-dead-code -Coverflow-checks=off"

View File

@ -14,4 +14,7 @@ export MOZ_PACKAGE_JSSHELL=1
ac_add_options --with-branding=browser/branding/nightly
# Keep basic GDB symbols around in debug builds
ac_add_options STRIP_FLAGS=--strip-debug
. "$topsrcdir/build/mozconfig.common.override"

View File

@ -1,6 +1,7 @@
MOZ_AUTOMATION_BUILD_SYMBOLS=0
MOZ_AUTOMATION_PACKAGE_TESTS=0
MOZ_AUTOMATION_L10N_CHECK=0
MOZ_AUTOMATION_CHECK=0
. "$topsrcdir/build/unix/mozconfig.unix"
@ -9,8 +10,8 @@ ac_add_options --enable-debug
. $topsrcdir/build/mozconfig.stylo
# Use Clang as specified in manifest
export CC="$topsrcdir/clang/bin/clang"
export CXX="$topsrcdir/clang/bin/clang++"
export CC="$MOZ_FETCHES_DIR/clang/bin/clang"
export CXX="$MOZ_FETCHES_DIR/clang/bin/clang++"
# Save rust analysis (this requires unlocking the unstable features,
# which is done in the taskcluster task definition via RUSTC_BOOTSTRAP)

View File

@ -9,8 +9,8 @@ ac_add_options --enable-debug
. $topsrcdir/build/mozconfig.stylo
# Use Clang as specified in manifest
export CC="$topsrcdir/clang/bin/clang"
export CXX="$topsrcdir/clang/bin/clang++"
export CC="$MOZ_FETCHES_DIR/clang/bin/clang"
export CXX="$MOZ_FETCHES_DIR/clang/bin/clang++"
# Add the static checker
ac_add_options --enable-clang-plugin

View File

@ -1,5 +1,3 @@
export MOZ_PGO=1
. "$topsrcdir/browser/config/mozconfigs/linux64/common-opt"
ac_add_options --with-branding=browser/branding/aurora

View File

@ -2,4 +2,10 @@
ac_add_options --with-branding=browser/branding/nightly
# STRIP_FLAGS is only valid for builds that strip; valgrind builds disable stripping
if [ -z "$USE_VALGRIND" ]; then
# Keep basic GDB symbols around in Nightly builds
ac_add_options STRIP_FLAGS=--strip-debug
fi
. "$topsrcdir/build/mozconfig.common.override"

View File

@ -1,14 +1,14 @@
export TOOLTOOL_DIR="$topsrcdir"
export LLVM_CONFIG="${TOOLTOOL_DIR}/clang/bin/llvm-config"
export LLVM_CONFIG="${MOZ_FETCHES_DIR}/clang/bin/llvm-config"
CARGO="${TOOLTOOL_DIR}/rustc/bin/cargo"
RUSTC="${TOOLTOOL_DIR}/rustc/bin/rustc"
RUSTDOC="${TOOLTOOL_DIR}/rustc/bin/rustdoc"
RUSTFMT="${TOOLTOOL_DIR}/rustc/bin/rustfmt"
CBINDGEN="${TOOLTOOL_DIR}/cbindgen/cbindgen"
CARGO="${MOZ_FETCHES_DIR}/rustc/bin/cargo"
RUSTC="${MOZ_FETCHES_DIR}/rustc/bin/rustc"
RUSTDOC="${MOZ_FETCHES_DIR}/rustc/bin/rustdoc"
RUSTFMT="${MOZ_FETCHES_DIR}/rustc/bin/rustfmt"
CBINDGEN="${MOZ_FETCHES_DIR}/cbindgen/cbindgen"
export NODEJS="${TOOLTOOL_DIR}/node/bin/node"
NASM="${TOOLTOOL_DIR}/nasm/nasm"
export NODEJS="${MOZ_FETCHES_DIR}/node/bin/node"
NASM="${MOZ_FETCHES_DIR}/nasm/nasm"
CC="${TOOLTOOL_DIR}/clang/bin/clang"
CXX="${TOOLTOOL_DIR}/clang/bin/clang++"
CC="${MOZ_FETCHES_DIR}/clang/bin/clang"
CXX="${MOZ_FETCHES_DIR}/clang/bin/clang++"

View File

@ -1,6 +1,5 @@
. $topsrcdir/browser/config/mozconfigs/linux64/beta
. $topsrcdir/browser/config/mozconfigs/linux64/nightly
mk_add_options "export MOZ_AUTOMATION_BUILD_SYMBOLS=0"
mk_add_options "export MOZ_AUTOMATION_PACKAGE_TESTS=0"
mk_add_options "export MOZ_AUTOMATION_PACKAGE_GENERATED_SOURCES=0"
mk_add_options "export MOZ_AUTOMATION_L10N_CHECK=0"

View File

@ -1,8 +1,6 @@
# This make file should be identical to the beta mozconfig, apart from the
# safeguard below
. "$topsrcdir/build/mozconfig.pgo"
. "$topsrcdir/browser/config/mozconfigs/linux64/common-opt"
ac_add_options --enable-official-branding

View File

@ -6,7 +6,7 @@ MOZ_AUTOMATION_UPLOAD=0
MOZ_AUTOMATION_UPLOAD_SYMBOLS=0
TOOLTOOL_DIR=${TOOLTOOL_DIR:-$topsrcdir}
export TUP=${TOOLTOOL_DIR}/tup/tup
export TUP=${MOZ_FETCHES_DIR}/tup/tup
. "$topsrcdir/browser/config/mozconfigs/linux64/common-opt"
. "$topsrcdir/build/mozconfig.common.override"

View File

@ -1,3 +1,6 @@
MOZ_AUTOMATION_CHECK=0
USE_VALGRIND=1
. $topsrcdir/browser/config/mozconfigs/linux64/nightly
ac_add_options --enable-valgrind

View File

@ -1,7 +1,5 @@
. $topsrcdir/browser/config/mozconfigs/macosx64/nightly
unset MOZ_LTO
ac_add_options --with-branding=browser/branding/unofficial
ac_add_options --enable-update-channel=default

View File

@ -2,6 +2,4 @@
ac_add_options --enable-official-branding
export MOZ_LTO=cross
. "$topsrcdir/build/mozconfig.common.override"

View File

@ -8,6 +8,6 @@ ac_add_options --disable-sandbox
ac_add_options --disable-warnings-as-errors
ac_add_options --enable-coverage
export LDFLAGS="-coverage -L$topsrcdir/clang/lib/clang/8.0.0/lib/darwin/"
export LDFLAGS="-coverage -L$MOZ_FETCHES_DIR/clang/lib/clang/8.0.0/lib/darwin/"
export LIBS="-lclang_rt.profile_osx"
export RUSTFLAGS="-Ccodegen-units=1 -Zprofile -Zno-landing-pads -Clink-dead-code -Coverflow-checks=off"

View File

@ -1,6 +1,7 @@
MOZ_AUTOMATION_BUILD_SYMBOLS=0
MOZ_AUTOMATION_PACKAGE_TESTS=0
MOZ_AUTOMATION_L10N_CHECK=0
MOZ_AUTOMATION_CHECK=0
. $topsrcdir/build/macosx/mozconfig.common

View File

@ -1,9 +1,5 @@
. "$topsrcdir/browser/config/mozconfigs/macosx64/common-opt"
ac_add_options --disable-install-strip
export MOZ_LTO=cross
ac_add_options --enable-instruments
# Cross-compiled builds fail when dtrace is enabled

View File

@ -4,9 +4,9 @@
if test `uname -s` = "Linux"; then
# We need to indicate the target for cross builds
ac_add_options --target=x86_64-apple-darwin
export MKFSHFS=$topsrcdir/hfsplus-tools/newfs_hfs
export DMG_TOOL=$topsrcdir/dmg/dmg
export HFS_TOOL=$topsrcdir/dmg/hfsplus
export MKFSHFS=$MOZ_FETCHES_DIR/hfsplus-tools/newfs_hfs
export DMG_TOOL=$MOZ_FETCHES_DIR/dmg/dmg
export HFS_TOOL=$MOZ_FETCHES_DIR/dmg/hfsplus
fi
ac_add_options --with-l10n-base=../../l10n

View File

@ -1,6 +1,5 @@
. "$topsrcdir/browser/config/mozconfigs/macosx64/common-opt"
ac_add_options --disable-install-strip
ac_add_options --enable-instruments
# Cross-compiled builds fail when dtrace is enabled
@ -8,8 +7,6 @@ if test `uname -s` != Linux; then
ac_add_options --enable-dtrace
fi
export MOZ_LTO=cross
ac_add_options --with-branding=browser/branding/nightly
. "$topsrcdir/build/mozconfig.common.override"

View File

@ -5,8 +5,6 @@
ac_add_options --enable-official-branding
export MOZ_LTO=cross
# safeguard against someone forgetting to re-set EARLY_BETA_OR_EARLIER in
# defines.sh during the beta cycle
export BUILDING_RELEASE=1

View File

@ -1,8 +1,8 @@
# This mozconfig is responsible merely for getting the cross tools setup
# for repacking a .tar into a .dmg as returned from signing.
export MKFSHFS=$topsrcdir/hfsplus-tools/newfs_hfs
export DMG_TOOL=$topsrcdir/dmg/dmg
export HFS_TOOL=$topsrcdir/dmg/hfsplus
export NODEJS=$topsrcdir/node/bin/node
export MKFSHFS=$MOZ_FETCHES_DIR/hfsplus-tools/newfs_hfs
export DMG_TOOL=$MOZ_FETCHES_DIR/dmg/dmg
export HFS_TOOL=$MOZ_FETCHES_DIR/dmg/hfsplus
export NODEJS=$MOZ_FETCHES_DIR/node/bin/node
ac_add_options --disable-compile-environment

View File

@ -13,7 +13,6 @@ for platform in all_platforms:
]
whitelist['nightly']['macosx64'] += [
'ac_add_options --disable-install-strip',
'ac_add_options --enable-instruments',
'ac_add_options --enable-dtrace',
'if test `uname -s` != Linux; then',
@ -30,16 +29,12 @@ for platform in all_platforms:
'ac_add_options --enable-official-branding',
'export BUILDING_RELEASE=1',
]
whitelist['release']['win32'] += ['export MOZ_PGO=1']
whitelist['release']['win64'] += ['export MOZ_PGO=1']
whitelist['release']['linux32'] += [
'export MOZILLA_OFFICIAL=1',
'export MOZ_PGO=1',
]
whitelist['release']['linux64'] += [
'export MOZILLA_OFFICIAL=1',
'. "$topsrcdir/build/mozconfig.pgo"',
]
if __name__ == '__main__':

View File

@ -1,5 +1,3 @@
export MOZ_PGO=1
. "$topsrcdir/build/mozconfig.win-common"
. "$topsrcdir/browser/config/mozconfigs/win32/common-opt"

View File

@ -1,5 +1,3 @@
export MOZ_PGO=1
. "$topsrcdir/build/mozconfig.win-common"
. "$topsrcdir/browser/config/mozconfigs/win32/common-opt"

View File

@ -42,24 +42,24 @@ ac_add_options --disable-webrtc # Bug 1393901
ac_add_options --disable-geckodriver # Bug 1489320
# Find our toolchain
HOST_CC="$TOOLTOOL_DIR/clang/bin/clang"
HOST_CXX="$TOOLTOOL_DIR/clang/bin/clang++"
CC="$TOOLTOOL_DIR/clang/bin/i686-w64-mingw32-clang"
CXX="$TOOLTOOL_DIR/clang/bin/i686-w64-mingw32-clang++"
HOST_CC="$MOZ_FETCHES_DIR/clang/bin/clang"
HOST_CXX="$MOZ_FETCHES_DIR/clang/bin/clang++"
CC="$MOZ_FETCHES_DIR/clang/bin/i686-w64-mingw32-clang"
CXX="$MOZ_FETCHES_DIR/clang/bin/i686-w64-mingw32-clang++"
ac_add_options --with-clang-path="$CC"
ac_add_options --with-libclang-path="$TOOLTOOL_DIR/clang/lib"
ac_add_options --with-libclang-path="$MOZ_FETCHES_DIR/clang/lib"
CXXFLAGS="-fms-extensions"
AR=llvm-ar
RANLIB=llvm-ranlib
# For Stylo
BINDGEN_CFLAGS="-I$TOOLTOOL_DIR/clang/i686-w64-mingw32/include/c++/v1 -I$TOOLTOOL_DIR/clang/i686-w64-mingw32/include"
BINDGEN_CFLAGS="-I$MOZ_FETCHES_DIR/clang/i686-w64-mingw32/include/c++/v1 -I$MOZ_FETCHES_DIR/clang/i686-w64-mingw32/include"
# We want to make sure we use binutils and other binaries in the tooltool
# package.
mk_add_options "export PATH=$TOOLTOOL_DIR/clang/bin:$TOOLTOOL_DIR/mingw32/bin:$TOOLTOOL_DIR/wine/bin:$TOOLTOOL_DIR/upx/bin:$TOOLTOOL_DIR/fxc2/bin:$PATH"
mk_add_options "export PATH=$MOZ_FETCHES_DIR/clang/bin:$MOZ_FETCHES_DIR/mingw32/bin:$MOZ_FETCHES_DIR/wine/bin:$MOZ_FETCHES_DIR/upx/bin:$MOZ_FETCHES_DIR/fxc2/bin:$PATH"
LD_LIBRARY_PATH=${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}$TOOLTOOL_DIR/mingw32/lib64:$TOOLTOOL_DIR/clang/lib
LD_LIBRARY_PATH=${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}$MOZ_FETCHES_DIR/mingw32/lib64:$MOZ_FETCHES_DIR/clang/lib
mk_add_options "export LD_LIBRARY_PATH=$LD_LIBRARY_PATH"
# Do not include the visual studio related mozconfigs of course

View File

@ -1,6 +1,5 @@
. $topsrcdir/browser/config/mozconfigs/win32/nightly
mk_add_options "export MOZ_AUTOMATION_BUILD_SYMBOLS=0"
mk_add_options "export MOZ_AUTOMATION_PACKAGE_TESTS=0"
mk_add_options "export MOZ_AUTOMATION_PACKAGE_GENERATED_SOURCES=0"
mk_add_options "export MOZ_AUTOMATION_L10N_CHECK=0"

View File

@ -1,8 +1,6 @@
# This make file should be identical to the beta mozconfig, apart from the
# safeguard below
export MOZ_PGO=1
. "$topsrcdir/build/mozconfig.win-common"
. "$topsrcdir/browser/config/mozconfigs/win32/common-opt"

View File

@ -1,5 +1,3 @@
export MOZ_PGO=1
. "$topsrcdir/build/mozconfig.win-common"
. "$topsrcdir/browser/config/mozconfigs/win64/common-win64"
. "$topsrcdir/browser/config/mozconfigs/win64/common-opt"

View File

@ -18,8 +18,8 @@ export MOZILLA_OFFICIAL=1
# Package js shell.
export MOZ_PACKAGE_JSSHELL=1
if [ -d "$topsrcdir/clang" ]; then
CLANG_LIB_DIR="$(cd $topsrcdir/clang/lib/clang/* && cd lib/windows && pwd)"
if [ -d "$MOZ_FETCHES_DIR/clang" ]; then
CLANG_LIB_DIR="$(cd $MOZ_FETCHES_DIR/clang/lib/clang/* && cd lib/windows && pwd)"
export LIB=$LIB:$CLANG_LIB_DIR
export LDFLAGS="clang_rt.profile-x86_64.lib"

View File

@ -1,6 +1,7 @@
MOZ_AUTOMATION_BUILD_SYMBOLS=0
MOZ_AUTOMATION_PACKAGE_TESTS=0
MOZ_AUTOMATION_L10N_CHECK=0
MOZ_AUTOMATION_CHECK=0
. "$topsrcdir/build/mozconfig.win-common"
. "$topsrcdir/browser/config/mozconfigs/common"

View File

@ -1,5 +1,3 @@
export MOZ_PGO=1
. "$topsrcdir/build/mozconfig.win-common"
. "$topsrcdir/browser/config/mozconfigs/win64/common-win64"
. "$topsrcdir/browser/config/mozconfigs/win64/common-opt"

View File

@ -41,24 +41,24 @@ ac_add_options --disable-webrtc # Bug 1393901
ac_add_options --disable-geckodriver # Bug 1489320
# Find our toolchain
HOST_CC="$TOOLTOOL_DIR/clang/bin/clang"
HOST_CXX="$TOOLTOOL_DIR/clang/bin/clang++"
CC="$TOOLTOOL_DIR/clang/bin/x86_64-w64-mingw32-clang"
CXX="$TOOLTOOL_DIR/clang/bin/x86_64-w64-mingw32-clang++"
HOST_CC="$MOZ_FETCHES_DIR/clang/bin/clang"
HOST_CXX="$MOZ_FETCHES_DIR/clang/bin/clang++"
CC="$MOZ_FETCHES_DIR/clang/bin/x86_64-w64-mingw32-clang"
CXX="$MOZ_FETCHES_DIR/clang/bin/x86_64-w64-mingw32-clang++"
ac_add_options --with-clang-path="$CC"
ac_add_options --with-libclang-path="$TOOLTOOL_DIR/clang/lib"
ac_add_options --with-libclang-path="$MOZ_FETCHES_DIR/clang/lib"
CXXFLAGS="-fms-extensions"
AR=llvm-ar
RANLIB=llvm-ranlib
# For Stylo
BINDGEN_CFLAGS="-I$TOOLTOOL_DIR/clang/x86_64-w64-mingw32/include/c++/v1 -I$TOOLTOOL_DIR/clang/x86_64-w64-mingw32/include"
BINDGEN_CFLAGS="-I$MOZ_FETCHES_DIR/clang/x86_64-w64-mingw32/include/c++/v1 -I$MOZ_FETCHES_DIR/clang/x86_64-w64-mingw32/include"
# We want to make sure we use binutils and other binaries in the tooltool
# package.
mk_add_options "export PATH=$TOOLTOOL_DIR/clang/bin:$TOOLTOOL_DIR/mingw32/bin:$TOOLTOOL_DIR/wine/bin:$TOOLTOOL_DIR/upx/bin:$TOOLTOOL_DIR/fxc2/bin:$PATH"
mk_add_options "export PATH=$MOZ_FETCHES_DIR/clang/bin:$MOZ_FETCHES_DIR/mingw32/bin:$MOZ_FETCHES_DIR/wine/bin:$MOZ_FETCHES_DIR/upx/bin:$MOZ_FETCHES_DIR/fxc2/bin:$PATH"
LD_LIBRARY_PATH=${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}$TOOLTOOL_DIR/mingw32/lib64:$TOOLTOOL_DIR/clang/lib
LD_LIBRARY_PATH=${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}$MOZ_FETCHES_DIR/mingw32/lib64:$MOZ_FETCHES_DIR/clang/lib
mk_add_options "export LD_LIBRARY_PATH=$LD_LIBRARY_PATH"
# Do not include the visual studio related mozconfigs of course

View File

@ -1,15 +1,15 @@
TOOLTOOL_DIR=${topsrcdir}
export MAKECAB=$TOOLTOOL_DIR/makecab.exe
export LLVM_CONFIG="${TOOLTOOL_DIR}/clang/bin/llvm-config"
export LLVM_CONFIG="${MOZ_FETCHES_DIR}/clang/bin/llvm-config"
RUSTC="${TOOLTOOL_DIR}/rustc/bin/rustc"
CARGO="${TOOLTOOL_DIR}/rustc/bin/cargo"
RUSTDOC="${TOOLTOOL_DIR}/rustc/bin/rustdoc"
RUSTFMT="${TOOLTOOL_DIR}/rustc/bin/rustfmt"
CBINDGEN="${TOOLTOOL_DIR}/cbindgen/cbindgen"
RUSTC="${MOZ_FETCHES_DIR}/rustc/bin/rustc"
CARGO="${MOZ_FETCHES_DIR}/rustc/bin/cargo"
RUSTDOC="${MOZ_FETCHES_DIR}/rustc/bin/rustdoc"
RUSTFMT="${MOZ_FETCHES_DIR}/rustc/bin/rustfmt"
CBINDGEN="${MOZ_FETCHES_DIR}/cbindgen/cbindgen"
NASM="${TOOLTOOL_DIR}/nasm/nasm.exe"
NODEJS="${TOOLTOOL_DIR}/node/node.exe"
NASM="${MOZ_FETCHES_DIR}/nasm/nasm.exe"
NODEJS="${MOZ_FETCHES_DIR}/node/node.exe"
ac_add_options --target=x86_64-pc-mingw32

View File

@ -1,6 +1,5 @@
. $topsrcdir/browser/config/mozconfigs/win64/nightly
mk_add_options "export MOZ_AUTOMATION_BUILD_SYMBOLS=0"
mk_add_options "export MOZ_AUTOMATION_PACKAGE_TESTS=0"
mk_add_options "export MOZ_AUTOMATION_PACKAGE_GENERATED_SOURCES=0"
mk_add_options "export MOZ_AUTOMATION_L10N_CHECK=0"

View File

@ -1,8 +1,6 @@
# This make file should be identical to the beta mozconfig, apart from the
# safeguard below
export MOZ_PGO=1
. "$topsrcdir/build/mozconfig.win-common"
. "$topsrcdir/browser/config/mozconfigs/win64/common-win64"
. "$topsrcdir/browser/config/mozconfigs/win64/common-opt"

View File

@ -1 +1 @@
68.14.4
68.14.5

View File

@ -1 +1 @@
68.14.4b
68.14.5b

View File

@ -3,10 +3,8 @@
# 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/.
MOZ_APP_BASENAME=Mypal
MOZ_APP_VENDOR=Theodor2
MOZ_UPDATER=1
MOZ_PHOENIX=1
if test "$OS_ARCH" = "WINNT"; then
if ! test "$HAVE_64BIT_BUILD"; then
@ -28,13 +26,10 @@ if test "$OS_ARCH" = "WINNT"; then
fi
fi
# Enable building ./signmar and running libmar signature tests
MOZ_ENABLE_SIGNMAR=1
if [ "${MOZ_BROWSER_XHTML}" = "1" ]; then
BROWSER_CHROME_URL=chrome://browser/content/browser.xhtml
else
if [ "${MOZ_BROWSER_XUL}" = "1" ]; then
BROWSER_CHROME_URL=chrome://browser/content/browser.xul
else
BROWSER_CHROME_URL=chrome://browser/content/browser.xhtml
fi
# MOZ_APP_DISPLAYNAME will be set by branding/configure.sh
@ -45,22 +40,6 @@ fi
# For the mozilla-aurora repository, use "aurora".
MOZ_BRANDING_DIRECTORY=browser/branding/unofficial
MOZ_APP_ID={ec8030f7-c20a-464f-9b0e-13a3a9e97384}
# ACCEPTED_MAR_CHANNEL_IDS should usually be the same as the value MAR_CHANNEL_ID.
# If more than one ID is needed, then you should use a comma separated list
# of values.
# The MAR_CHANNEL_ID must not contain the following 3 characters: ",\t "
if test "$MOZ_UPDATE_CHANNEL" = "aurora"; then
ACCEPTED_MAR_CHANNEL_IDS=firefox-mozilla-aurora
MAR_CHANNEL_ID=firefox-mozilla-aurora
else
ACCEPTED_MAR_CHANNEL_IDS=firefox-mozilla-esr
MAR_CHANNEL_ID=firefox-mozilla-esr
fi
# ASan reporter builds should have different channel ids
if [ "${MOZ_ASAN_REPORTER}" = "1" ]; then
ACCEPTED_MAR_CHANNEL_IDS="${ACCEPTED_MAR_CHANNEL_IDS}-asan"
MAR_CHANNEL_ID="${MAR_CHANNEL_ID}-asan"
fi
MOZ_PROFILE_MIGRATOR=1

View File

@ -48,10 +48,6 @@ ifdef MOZ_SYSTEM_NSS
DEFINES += -DMOZ_SYSTEM_NSS=1
endif
ifdef NSS_DISABLE_DBM
DEFINES += -DNSS_DISABLE_DBM=1
endif
ifdef MOZ_ARTIFACT_BUILDS
DEFINES += -DMOZ_ARTIFACT_BUILDS=1
endif

View File

@ -136,11 +136,9 @@
@RESPATH@/update-settings.ini
#endif
@RESPATH@/platform.ini
#ifndef MOZ_SYSTEM_SQLITE
#ifndef MOZ_FOLD_LIBS
@BINPATH@/@DLL_PREFIX@mozsqlite3@DLL_SUFFIX@
#endif
#endif
@BINPATH@/@DLL_PREFIX@lgpllibs@DLL_SUFFIX@
#ifdef MOZ_FFVPX
@BINPATH@/@DLL_PREFIX@mozavutil@DLL_SUFFIX@
@ -185,6 +183,9 @@
@RESPATH@/components/Push.manifest
@RESPATH@/components/l10n-registry.manifest
@RESPATH@/browser/components/l10n-registry.manifest
; CDP remote agent
#ifdef ENABLE_REMOTE_AGENT
@RESPATH@/chrome/remote@JAREXT@
@ -354,9 +355,6 @@
#endif
@BINPATH@/@DLL_PREFIX@nss3@DLL_SUFFIX@
@BINPATH@/@DLL_PREFIX@nssckbi@DLL_SUFFIX@
#ifndef NSS_DISABLE_DBM
@BINPATH@/@DLL_PREFIX@nssdbm3@DLL_SUFFIX@
#endif
#ifndef MOZ_FOLD_LIBS
@BINPATH@/@DLL_PREFIX@nssutil3@DLL_SUFFIX@
@BINPATH@/@DLL_PREFIX@smime3@DLL_SUFFIX@
@ -417,10 +415,6 @@ bin/libfreebl_32int64_3.so
#endif
#endif
; [ Ping Sender ]
;
@BINPATH@/pingsender@BIN_SUFFIX@
; Shutdown Terminator
@RESPATH@/components/terminator.manifest

View File

@ -1351,7 +1351,6 @@
Push "xpcom.dll"
Push "crashreporter.exe"
Push "minidump-analyzer.exe"
Push "pingsender.exe"
Push "updater.exe"
Push "${FileMainEXE}"
!macroend

View File

@ -0,0 +1 @@
category l10n-registry 5-browser resource://app/localization/{locale}/

View File

@ -12,10 +12,10 @@ with Files("test/browser/*ContentSearch*"):
BUG_COMPONENT = ("Firefox", "Search")
with Files("test/browser/*PermissionUI*"):
BUG_COMPONENT = ("Firefox", "Site Identity and Permission Panels")
BUG_COMPONENT = ("Firefox", "Site Permissions")
with Files("test/browser/*SitePermissions*"):
BUG_COMPONENT = ("Firefox", "Site Identity and Permission Panels")
BUG_COMPONENT = ("Firefox", "Site Permissions")
with Files("test/browser/browser_UnsubmittedCrashHandler.js"):
BUG_COMPONENT = ("Toolkit", "Crash Reporting")
@ -33,7 +33,7 @@ with Files("test/unit/test_LaterRun.js"):
BUG_COMPONENT = ("Firefox", "Tours")
with Files("test/unit/test_SitePermissions.js"):
BUG_COMPONENT = ("Firefox", "Site Identity and Permission Panels")
BUG_COMPONENT = ("Firefox", "Site Permissions")
with Files("AboutNewTab.jsm"):
BUG_COMPONENT = ("Firefox", "New Tab Page")
@ -75,7 +75,7 @@ with Files("OpenInTabsUtils.jsm"):
BUG_COMPONENT = ("Firefox", "Tabbed Browser")
with Files("PermissionUI.jsm"):
BUG_COMPONENT = ("Firefox", "Site Identity and Permission Panels")
BUG_COMPONENT = ("Firefox", "Site Permissions")
with Files("ProcessHangMonitor.jsm"):
BUG_COMPONENT = ("Core", "DOM: Content Processes")
@ -93,7 +93,7 @@ with Files("SiteDataManager.jsm"):
BUG_COMPONENT = ("Firefox", "Preferences")
with Files("SitePermissions.jsm"):
BUG_COMPONENT = ("Firefox", "Site Identity and Permission Panels")
BUG_COMPONENT = ("Firefox", "Site Permissions")
with Files("TabsList.jsm"):
BUG_COMPONENT = ("Firefox", "Tabbed Browser")
@ -114,7 +114,7 @@ with Files("WindowsPreviewPerTab.jsm"):
BUG_COMPONENT = ("Core", "Widget: Win32")
with Files("webrtcUI.jsm"):
BUG_COMPONENT = ("Firefox", "Device Permissions")
BUG_COMPONENT = ("Firefox", "Site Permissions")
with Files("ZoomUI.jsm"):
BUG_COMPONENT = ("Firefox", "Toolbars and Customization")

View File

@ -5,6 +5,7 @@
const EXAMPLE_ORIGIN = "https://www.example.com";
const EXAMPLE_ORIGIN_2 = "https://example.org";
const EXAMPLE_ORIGIN_3 = "http://localhost:8000";
const { Services } = ChromeUtils.import("resource://gre/modules/Services.jsm");
const { SiteDataManager } = ChromeUtils.import(
@ -130,11 +131,18 @@ add_task(async function testRemove() {
SiteDataTestUtils.addToCookies(EXAMPLE_ORIGIN_2, "foo", "bar");
await SiteDataTestUtils.addToIndexedDB(EXAMPLE_ORIGIN_2, 2048);
await SiteDataTestUtils.persist(EXAMPLE_ORIGIN_2);
await SiteDataTestUtils.addToIndexedDB(EXAMPLE_ORIGIN_3, 2048);
await SiteDataManager.updateSites();
let sites = await SiteDataManager.getSites();
Assert.equal(sites.length, 3, "Has three sites.");
await SiteDataManager.remove(["localhost"]);
sites = await SiteDataManager.getSites();
Assert.equal(sites.length, 2, "Has two sites.");
await SiteDataManager.remove(["www.example.com"]);

View File

@ -9,6 +9,10 @@ SPHINX_TREES['browser'] = 'docs'
with Files('docs/**'):
SCHEDULES.exclusive = ['docs']
EXTRA_COMPONENTS += [
'l10n-registry.manifest',
]
DIRS += [
'actors',
'base',
@ -92,3 +96,6 @@ with Files("installer/**"):
with Files("tools/**"):
BUG_COMPONENT = ("Firefox", "General")
with Files('l10n-registry.manifest'):
BUG_COMPONENT = ('Core', 'Localization')

View File

@ -54,7 +54,7 @@
/* Bookmark toolbar */
#PersonalToolbar {
overflow: -moz-hidden-unscrollable;
overflow: clip;
max-height: 4em;
padding: 0 6px 2px;
}

View File

@ -535,6 +535,8 @@ button > hbox > label {
background: none !important;
min-width: 0;
min-height: auto;
padding-inline: 0;
margin-inline: 0 8px;
}
.dialogFrame {

View File

@ -36,7 +36,7 @@
margin: 3px 5px;
min-height: 30px;
cursor: default;
overflow: -moz-hidden-unscrollable;
overflow: clip;
}
#urlbar:hover,

View File

@ -255,7 +255,7 @@
/* Need to constrain the box shadow fade to avoid overlapping layers, see bug 886281. */
#main-window[tabsintitlebar]:not([sizemode=fullscreen]) #navigator-toolbox:not(:-moz-lwtheme) {
overflow: -moz-hidden-unscrollable;
overflow: clip;
}
#main-window[tabsintitlebar][sizemode="normal"] > #navigator-toolbox:-moz-lwtheme {

View File

@ -53,7 +53,18 @@ async function compareImages(window, expected, test) {
"The test and expected images must be the same size"
);
return window.windowUtils.compareCanvases(expectedCanvas, testCanvas, {});
var maxDifference = {};
var differences = window.windowUtils.compareCanvases(
expectedCanvas,
testCanvas,
maxDifference
);
// Fuzz for minor differences that can be caused by the encoder.
if (maxDifference.value > 1) {
return differences;
}
return 0;
}
async function cropAndCompare(window, src, expected, test, region, subregions) {

View File

@ -6,13 +6,13 @@ with Files("**"):
BUG_COMPONENT = ("Firefox", "General")
with Files("controlCenter/**"):
BUG_COMPONENT = ("Firefox", "Site Identity and Permission Panels")
BUG_COMPONENT = ("Firefox", "Site Identity")
with Files("devtools/**"):
BUG_COMPONENT = ("DevTools", "General")
with Files("permissionPrompts/**"):
BUG_COMPONENT = ("Firefox", "Site Identity and Permission Panels")
BUG_COMPONENT = ("Firefox", "Site Permissions")
with Files("preferences/**"):
BUG_COMPONENT = ("Firefox", "Preferences")

View File

@ -22,7 +22,6 @@ allprojects {
ANDROID_PACKAGE_NAME: mozconfig.substs.ANDROID_PACKAGE_NAME,
ANDROID_TARGET_SDK: mozconfig.substs.ANDROID_TARGET_SDK,
MOZ_ANDROID_MIN_SDK_VERSION: mozconfig.substs.MOZ_ANDROID_MIN_SDK_VERSION,
MOZ_ANDROID_SHARED_ID: "${mozconfig.substs.ANDROID_PACKAGE_NAME}.sharedID",
]
}
@ -71,7 +70,7 @@ buildscript {
}
}
ext.kotlin_version = '1.2.41'
ext.kotlin_version = '1.3.41'
ext.support_library_version = '28.0.0'
ext.jacoco_version = '0.8.1'
ext.lifecycle_library_version = '1.1.1'
@ -83,8 +82,8 @@ buildscript {
}
dependencies {
classpath 'org.mozilla.apilint:apilint:0.2.1'
classpath 'com.android.tools.build:gradle:3.1.4'
classpath 'org.mozilla.apilint:apilint:0.2.6'
classpath 'com.android.tools.build:gradle:3.4.2'
classpath 'com.getkeepsafe.dexcount:dexcount-gradle-plugin:0.8.2'
classpath 'org.apache.commons:commons-exec:1.3'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
@ -157,26 +156,6 @@ class MachExec extends Exec {
}
}
task machBuildGeneratedAndroidCodeAndResources(type: MachExec) {
onlyIf rootProject.ext.geckoBinariesOnlyIf
workingDir "${topsrcdir}"
commandLine mozconfig.substs.PYTHON
args "${topsrcdir}/mach"
args 'build'
args 'mobile/android/base/generated_android_code_and_resources'
// Add `-v` if we're running under `--info` (or `--debug`).
if (project.logger.isEnabled(LogLevel.INFO)) {
args '-v'
}
// `path` is like `:machBuildGeneratedAndroidCodeAndResources`.
standardOutput = new TaggedLogOutputStream("${path}>", logger)
errorOutput = standardOutput
}
// Why |mach build mobile/android/base/...| and |mach build faster|? |mach
// build faster| generates dependentlibs.list, which in turn depends on compiled
// code. That causes a circular dependency between Java compilation/JNI wrapper
@ -250,43 +229,21 @@ createMachStagePackageTask("machStagePackageForGeckoview").with {
afterEvaluate {
subprojects { project ->
if (project.name != 'thirdparty') {
tasks.withType(JavaCompile) {
// Add compiler args for all code except third-party code.
options.compilerArgs += [
// Turn on all warnings, except...
"-Xlint:all",
// Deprecation, because we do use deprecated API for compatibility.
"-Xlint:-deprecation",
// Serial, because we don't use Java serialization.
"-Xlint:-serial",
// Classfile, because javac has a bug with MethodParameters attributes
// with Java 7. https://bugs.openjdk.java.net/browse/JDK-8190452
"-Xlint:-classfile",
// Turn all remaining warnings into errors,
// unless marked by @SuppressWarnings.
"-Werror"]
}
if (project.name == 'app') {
tasks.withType(JavaCompile) {
// Turn off classfile warnings because upon updating to play services 15.0.0
// a warning is being thrown from play-services-base which fails the build
// (com/google/android/gms/common/api/GoogleApiClient.class):
// warning: Cannot find annotation method 'value()' in type 'GuardedBy':
// class file for javax.annotation.concurrent.GuardedBy not found
options.compilerArgs += ["-Xlint:-classfile"]
}
}
}
if (!hasProperty('android')) {
return
}
android.applicationVariants.all {
preBuild.dependsOn rootProject.machBuildGeneratedAndroidCodeAndResources
}
android.libraryVariants.all {
preBuild.dependsOn rootProject.machBuildGeneratedAndroidCodeAndResources
tasks.withType(JavaCompile) {
// Add compiler args for all code except third-party code.
options.compilerArgs += [
// Turn on all warnings, except...
"-Xlint:all",
// Deprecation, because we do use deprecated API for compatibility.
"-Xlint:-deprecation",
// Serial, because we don't use Java serialization.
"-Xlint:-serial",
// Classfile, because javac has a bug with MethodParameters attributes
// with Java 7. https://bugs.openjdk.java.net/browse/JDK-8190452
"-Xlint:-classfile",
// Turn all remaining warnings into errors,
// unless marked by @SuppressWarnings.
"-Werror"]
}
}
}
@ -318,12 +275,5 @@ idea {
excludeDirs += files(file(topobjdir).listFiles())
excludeDirs -= file("${topobjdir}/gradle")
}
if (!mozconfig.substs.MOZ_INSTALL_TRACKING) {
excludeDirs += file("${topsrcdir}/mobile/android/thirdparty/com/adjust")
}
}
}
task wrapper(type: Wrapper) {
}

View File

@ -73,5 +73,5 @@ define(MOZ_ARG_HEADER, [# $1])
dnl MOZ_READ_MYCONFIG() - Read in 'myconfig.sh' file
AC_DEFUN([MOZ_READ_MOZCONFIG],
[AC_REQUIRE([AC_INIT_BINSH])dnl
. ./old-configure.vars
. $OLD_CONFIGURE_VARS
])

View File

@ -23,11 +23,6 @@ case "$target" in
ASFLAGS="$directory_include_args -DANDROID $ASFLAGS"
LDFLAGS="-L$android_platform/usr/lib -Wl,-rpath-link=$android_platform/usr/lib --sysroot=$android_platform $LDFLAGS"
ANDROID_PLATFORM="${android_platform}"
AC_DEFINE(ANDROID)
AC_SUBST(ANDROID_PLATFORM)
;;
esac

View File

@ -175,16 +175,12 @@ if test -n "$ENABLE_MOZSEARCH_PLUGIN"; then
AC_MSG_ERROR([Can't use mozsearch plugin without --enable-clang-plugin.])
fi
dnl We use this construct rather than $_objdir to avoid getting /js/src in the
dnl path when compiling JS code.
OBJDIR="$(dirname $(dirname $(dirname $CLANG_PLUGIN)))"
CLANG_PLUGIN_FLAGS="$CLANG_PLUGIN_FLAGS -Xclang -add-plugin -Xclang mozsearch-index"
dnl Parameters are: srcdir, outdir (path where output JSON is stored), objdir.
CLANG_PLUGIN_FLAGS="$CLANG_PLUGIN_FLAGS -Xclang -plugin-arg-mozsearch-index -Xclang $_topsrcdir"
CLANG_PLUGIN_FLAGS="$CLANG_PLUGIN_FLAGS -Xclang -plugin-arg-mozsearch-index -Xclang $OBJDIR/mozsearch_index"
CLANG_PLUGIN_FLAGS="$CLANG_PLUGIN_FLAGS -Xclang -plugin-arg-mozsearch-index -Xclang $OBJDIR"
CLANG_PLUGIN_FLAGS="$CLANG_PLUGIN_FLAGS -Xclang -plugin-arg-mozsearch-index -Xclang $_objdir/mozsearch_index"
CLANG_PLUGIN_FLAGS="$CLANG_PLUGIN_FLAGS -Xclang -plugin-arg-mozsearch-index -Xclang $_objdir"
AC_DEFINE(MOZ_MOZSEARCH_PLUGIN)
fi

Some files were not shown because too many files have changed in this diff Show More