Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
733e1b0
Bug 1736786 - use option.textContent in devtools css filter widget r=…
mozfreddyb Oct 21, 2021
fea049f
Bug 1711477 - Update etagere to 0.2.6. r=gfx-reviewers,jrmuizel
nical Oct 21, 2021
fce170a
Bug 1711477 - Add a way to get from atlas alloc ID to texture cache h…
nical Oct 21, 2021
5cb683c
Bug 1711477 - Add support for copying from a cache texture to another…
nical Oct 21, 2021
3410a14
Bug 1711477 - Texture cache compaction r=gfx-reviewers,kvark
nical Oct 21, 2021
617736e
Bug 1711477 - Improve the texture cache eviction heuristics. r=gfx-re…
nical Oct 21, 2021
127a09c
Bug 1711477 - Use a dedicated shader for copying from a texture to an…
nical Oct 21, 2021
f317384
Bug 1736518 - Make browser.tabs.drawInTitlebar a tri-state. r=stransk…
emilio Oct 21, 2021
0ae349e
Bug 1736518 - Fix CSD check in nsLookAndFeel. r=stransky
emilio Oct 21, 2021
84fd4bc
Bug 1736518 - Remove GTK_CSD_DECORATION_UNKNOWN. r=stransky
emilio Oct 21, 2021
b26f16d
Bug 1736983 - add UseCounter for Sanitizer API methods r=emilio
mozfreddyb Oct 21, 2021
b093ee3
Merge mozilla-central to autoland on a CLOSED TREE
Oct 21, 2021
d551f24
Bug 1694085 - Serialize and deserialize the codec extra-data when sen…
padenot Oct 21, 2021
ade076b
Bug 1694085 - Add a test that verifies that HE-AAC plays back correct…
padenot Oct 21, 2021
79e4b59
Bug 1736824 - [devtools] Fix "consoleFront is null" exception when re…
ochameau Oct 21, 2021
31b127d
Bug 1736824 - [devtools] Really stop listener and emitting events in …
ochameau Oct 21, 2021
70d1f98
Bug 1736749 - ensure we alwaysAskBeforeHandling downloads in browser_…
sfoster Oct 21, 2021
858c095
Bug 1160000 - Add xpcshell-tests for NTLM authentication r=necko-revi…
GaryWL Oct 21, 2021
fcc41d7
Bug 1160000 - Fix up NTLM tests r=necko-reviewers,dragana
valenting Oct 21, 2021
19f9516
Bug 1160000 - Fix netwerk/test/unit/xpcshell.ini lint warnings r=neck…
valenting Oct 21, 2021
c4b44c8
Bug 1694085 - Smooth the FFT analysis to make the test more robust.
padenot Oct 21, 2021
ef5149b
Bug 1690731 - Move Places telemetry startup to a scheduled task to en…
Standard8 Oct 21, 2021
03bea7f
Bug 1736825 - Improve manifest.json files parsing in browser_all_file…
rpl Oct 21, 2021
0b6fe69
Bug 1735721 - Move addons-search-detection in tree. r=rpl,florian
willdurand Oct 21, 2021
55a8b2e
Bug 1735129: Add thread-safe name getter to nsThread. r=xpcom-reviewe…
jensstutte Oct 21, 2021
40e2433
Bug 1735284: Add a check in nsThread::ShutdownInternal if the shutdow…
jensstutte Oct 21, 2021
cf47bf9
Bug 1632476 changed hostname for media permissions to include the por…
jbarson Oct 21, 2021
edc33de
Bug 1735129: Add thread's name in nsThread::Shutdown's SpinEventLoopU…
jensstutte Oct 21, 2021
212af2f
Bug 1635183 - [mozperftest] Port browsertime log parsing to mozperfte…
junngo Oct 21, 2021
06f92be
Bug 1736240 - Make menulists and buttons in the permissions panel hav…
ItielMaN Oct 21, 2021
d896837
Bug 1735095 [Wayland] Polish cursorOffset logging, r=jhorak
stransky Oct 21, 2021
d86a1ff
Bug 1735095 [Wayland] When font/text scale factor is used, don't repo…
stransky Oct 21, 2021
10f658a
Backed out 3 changesets (bug 1160000) for causing xpcshell failures o…
Oct 21, 2021
29bbbf1
Backed out 3 changesets (bug 1694085) for causing mda failures on tes…
Oct 21, 2021
07077e4
Bug 1736781 - Update eslint-plugin-no-unsanitized to version 3.2.0 r=…
mozfreddyb Oct 21, 2021
921cb99
Bug 1736373 - Revert to pingsender1. r=chutten
bholley Oct 21, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 0 additions & 5 deletions browser/app/profile/firefox.js
Original file line number Diff line number Diff line change
Expand Up @@ -629,11 +629,6 @@ pref("browser.tabs.tabMinWidth", 76);
// secondary text on tabs hidden due to size constraints and readability
// of the text at small font sizes.
pref("browser.tabs.secondaryTextUnsupportedLocales", "ar,bn,bo,ckb,fa,gu,he,hi,ja,km,kn,ko,lo,mr,my,ne,pa,si,ta,te,th,ur,zh");
// Initial titlebar state is managed by -moz-gtk-csd-hide-titlebar-by-default
// on Linux.
#ifndef UNIX_BUT_NOT_MAC
pref("browser.tabs.drawInTitlebar", true);
#endif

//Control the visibility of Tab Manager Menu.
pref("browser.tabs.tabmanager.enabled", false);
Expand Down
5 changes: 1 addition & 4 deletions browser/base/content/browser-tabsintitlebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,7 @@ var TabsInTitlebar = {
_prefName: "browser.tabs.drawInTitlebar",

_readPref() {
let hiddenTitlebar = Services.prefs.getBoolPref(
"browser.tabs.drawInTitlebar",
window.matchMedia("(-moz-gtk-csd-hide-titlebar-by-default)").matches
);
let hiddenTitlebar = Services.appinfo.drawInTitlebar;
this.allowedBy("pref", hiddenTitlebar);
},

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,13 @@ const startupPhases = {
ignoreIfUnused: true,
maxCount: 2,
},
// Added for the search-detection built-in add-on.
{
name: "PGPU::Msg_AddLayerTreeIdMapping",
condition: WIN,
ignoreIfUnused: true,
maxCount: 1,
},
],
};

Expand Down
6 changes: 3 additions & 3 deletions browser/base/content/test/popups/browser_popupUI.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ add_task(async function titlebar_buttons_visibility() {
Services.prefs.setIntPref("browser.link.open_newwindow", 2);

const drawInTitlebarValues = [
[true, BUTTONS_MAY_VISIBLE],
[false, BUTTONS_NEVER_VISIBLE],
[1, BUTTONS_MAY_VISIBLE],
[0, BUTTONS_NEVER_VISIBLE],
];
const windowFeaturesValues = [
// Opens a popup
Expand All @@ -77,7 +77,7 @@ add_task(async function titlebar_buttons_visibility() {
const menuBarShownValues = [true, false];

for (const [drawInTitlebar, drawInTitlebarButtons] of drawInTitlebarValues) {
Services.prefs.setBoolPref("browser.tabs.drawInTitlebar", drawInTitlebar);
Services.prefs.setIntPref("browser.tabs.drawInTitlebar", drawInTitlebar);

for (const [
windowFeatures,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ add_task(async function testWritesEnabledOnPrefChange() {
is(enabled, 0, "Pre-XUL skeleton UI is disabled in the Windows registry");

Services.prefs.setBoolPref("browser.startup.preXulSkeletonUI", true);
Services.prefs.setBoolPref("browser.tabs.drawInTitlebar", false);
Services.prefs.setIntPref("browser.tabs.drawInTitlebar", 0);
enabled = WindowsRegistry.readRegKey(
Ci.nsIWindowsRegKey.ROOT_KEY_CURRENT_USER,
"Software\\Mozilla\\Firefox\\PreXULSkeletonUISettings",
Expand Down
10 changes: 10 additions & 0 deletions browser/base/content/test/static/browser_all_files_referenced.js
Original file line number Diff line number Diff line change
Expand Up @@ -467,6 +467,12 @@ async function parseJsonManifest(uri) {
return uri;
}

if (data.background?.scripts) {
for (let bgscript of data.background.scripts) {
gReferencesFromCode.set(uri.resolve(bgscript), null);
}
}

if (data.icons) {
for (let icon of Object.values(data.icons)) {
gReferencesFromCode.set(uri.resolve(icon), null);
Expand All @@ -479,6 +485,10 @@ async function parseJsonManifest(uri) {
let script = uri.resolve(api.parent.script);
gReferencesFromCode.set(script, null);
}

if (api.schema) {
gReferencesFromCode.set(uri.resolve(api.schema), null);
}
}
}

Expand Down
44 changes: 29 additions & 15 deletions browser/components/BrowserGlue.jsm
Original file line number Diff line number Diff line change
Expand Up @@ -800,10 +800,7 @@ let JSWINDOWACTORS = {
);

// Hide the titlebar if the actual browser window will draw in it.
let hiddenTitlebar = Services.prefs.getBoolPref(
"browser.tabs.drawInTitlebar",
win.matchMedia("(-moz-gtk-csd-hide-titlebar-by-default)").matches
);
let hiddenTitlebar = Services.appinfo.drawInTitlebar;
if (hiddenTitlebar) {
win.windowUtils.setChromeMargin(0, 2, 2, 2);
}
Expand Down Expand Up @@ -1244,9 +1241,6 @@ BrowserGlue.prototype = {
if (AppConstants.platform == "win") {
JawsScreenReaderVersionCheck.init();
}

// This value is to limit collecting Places telemetry once per session.
this._placesTelemetryGathered = false;
},

// cleanup (called on application shutdown)
Expand Down Expand Up @@ -1700,14 +1694,6 @@ BrowserGlue.prototype = {

this._collectStartupConditionsTelemetry();

if (!this._placesTelemetryGathered && TelemetryUtils.isTelemetryEnabled) {
this._placesTelemetryGathered = true;
// Collect Places telemetry on the first idle.
Services.tm.idleDispatchToMainThread(() => {
PlacesDBUtils.telemetry();
});
}

// Set the default favicon size for UI views that use the page-icon protocol.
PlacesUtils.favicons.setDefaultIconURIPreferredSize(
16 * aWindow.devicePixelRatio
Expand Down Expand Up @@ -2063,6 +2049,25 @@ BrowserGlue.prototype = {
_checkTranslationsPref();
},

async _setupSearchDetection() {
// There is no pref for this add-on because it shouldn't be disabled.
const ID = "addons-search-detection@mozilla.com";

let addon = await AddonManager.getAddonByID(ID);

// first time install of addon and install on firefox update
addon =
(await AddonManager.maybeInstallBuiltinAddon(
ID,
"2.0.0",
"resource://builtin-addons/search-detection/"
)) || addon;

if (!addon.isActive) {
addon.enable();
}
},

_monitorHTTPSOnlyPref() {
const PREF_ENABLED = "dom.security.https_only_mode";
const PREF_WAS_ENABLED = "dom.security.https_only_mode_ever_enabled";
Expand Down Expand Up @@ -2295,6 +2300,8 @@ BrowserGlue.prototype = {
this._monitorHTTPSOnlyPref();
this._monitorIonPref();
this._monitorIonStudies();
this._setupSearchDetection();

if (AppConstants.NIGHTLY_BUILD) {
this._monitorTranslationsPref();
}
Expand Down Expand Up @@ -2348,6 +2355,13 @@ BrowserGlue.prototype = {
},
},

{
condition: TelemetryUtils.isTelemetryEnabled,
task: () => {
PlacesDBUtils.telemetry().catch(console.error);
},
},

// Begin listening for incoming push messages.
{
task: () => {
Expand Down
10 changes: 3 additions & 7 deletions browser/components/customizableui/CustomizableUI.jsm
Original file line number Diff line number Diff line change
Expand Up @@ -3151,12 +3151,8 @@ var CustomizableUIInternal = {

_resetUIState() {
try {
// kPrefDrawInTitlebar may not be defined on Linux/Gtk+ which throws an exception
// and leads to whole test failure. Let's set a fallback default value to avoid that,
// both titlebar states are tested anyway and it's not important which state is tested first.
gUIStateBeforeReset.drawInTitlebar = Services.prefs.getBoolPref(
kPrefDrawInTitlebar,
false
gUIStateBeforeReset.drawInTitlebar = Services.prefs.getIntPref(
kPrefDrawInTitlebar
);
gUIStateBeforeReset.uiCustomizationState = Services.prefs.getCharPref(
kPrefCustomizationState
Expand Down Expand Up @@ -3246,7 +3242,7 @@ var CustomizableUIInternal = {
this._clearPreviousUIState();

Services.prefs.setCharPref(kPrefCustomizationState, uiCustomizationState);
Services.prefs.setBoolPref(kPrefDrawInTitlebar, drawInTitlebar);
Services.prefs.setIntPref(kPrefDrawInTitlebar, drawInTitlebar);
Services.prefs.setIntPref(kPrefUIDensity, uiDensity);
Services.prefs.setBoolPref(kPrefAutoTouchMode, autoTouchMode);
Services.prefs.setBoolPref(
Expand Down
7 changes: 2 additions & 5 deletions browser/components/customizableui/CustomizeMode.jsm
Original file line number Diff line number Diff line change
Expand Up @@ -1715,10 +1715,7 @@ CustomizeMode.prototype = {
},

_updateTitlebarCheckbox() {
let drawInTitlebar = Services.prefs.getBoolPref(
kDrawInTitlebarPref,
this.window.matchMedia("(-moz-gtk-csd-hide-titlebar-by-default)").matches
);
let drawInTitlebar = Services.appinfo.drawInTitlebar;
let checkbox = this.$("customization-titlebar-visibility-checkbox");
// Drawing in the titlebar means 'hiding' the titlebar.
// We use the attribute rather than a property because if we're not in
Expand All @@ -1732,7 +1729,7 @@ CustomizeMode.prototype = {

toggleTitlebar(aShouldShowTitlebar) {
// Drawing in the titlebar means not showing the titlebar, hence the negation:
Services.prefs.setBoolPref(kDrawInTitlebarPref, !aShouldShowTitlebar);
Services.prefs.setIntPref(kDrawInTitlebarPref, !aShouldShowTitlebar);
},

_getBoundsWithoutFlushing(element) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,11 +142,16 @@ add_task(async function() {

// Bug 971626 - Restore Defaults should collapse the Title Bar
add_task(async function() {
if (Services.appinfo.OS != "WINNT" && Services.appinfo.OS != "Darwin") {
return;
{
const supported = TabsInTitlebar.systemSupported;
is(typeof supported, "boolean");
info("TabsInTitlebar support: " + supported);
if (!supported) {
return;
}
}
let prefName = "browser.tabs.drawInTitlebar";
let defaultValue = Services.prefs.getBoolPref(prefName);

const kDefaultValue = Services.appinfo.drawInTitlebar;
let restoreDefaultsButton = document.getElementById(
"customization-reset-button"
);
Expand All @@ -166,7 +171,7 @@ add_task(async function() {
);
is(
titlebarCheckbox.hasAttribute("checked"),
!defaultValue,
!kDefaultValue,
"Title bar checkbox should reflect pref value"
);
is(
Expand All @@ -175,14 +180,20 @@ add_task(async function() {
"Undo reset button should be hidden at start of test"
);

Services.prefs.setBoolPref(prefName, !defaultValue);
let prefName = "browser.tabs.drawInTitlebar";
Services.prefs.setIntPref(prefName, !kDefaultValue);
ok(
!restoreDefaultsButton.disabled,
"Restore defaults button should be enabled when pref changed"
);
is(
Services.appinfo.drawInTitlebar,
!kDefaultValue,
"Title bar checkbox should reflect changed pref value"
);
is(
titlebarCheckbox.hasAttribute("checked"),
defaultValue,
kDefaultValue,
"Title bar checkbox should reflect changed pref value"
);
ok(
Expand All @@ -202,14 +213,19 @@ add_task(async function() {
);
is(
titlebarCheckbox.hasAttribute("checked"),
!defaultValue,
!kDefaultValue,
"Title bar checkbox should reflect default value after reset"
);
is(
Services.prefs.getBoolPref(prefName),
defaultValue,
Services.prefs.getIntPref(prefName),
2,
"Reset should reset drawInTitlebar"
);
is(
Services.appinfo.drawInTitlebar,
kDefaultValue,
"Default state should be restored"
);
ok(CustomizableUI.inDefaultState, "In default state after titlebar reset");
is(
undoResetButton.hidden,
Expand All @@ -228,13 +244,13 @@ add_task(async function() {
);
is(
titlebarCheckbox.hasAttribute("checked"),
defaultValue,
kDefaultValue,
"Title bar checkbox should reflect undo-reset value"
);
ok(!CustomizableUI.inDefaultState, "No longer in default state after undo");
is(
Services.prefs.getBoolPref(prefName),
!defaultValue,
Services.prefs.getIntPref(prefName),
kDefaultValue ? 0 : 1,
"Undo-reset goes back to previous pref value"
);
is(
Expand Down
1 change: 1 addition & 0 deletions browser/extensions/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ DIRS += [
"report-site-issue",
"pictureinpicture",
"proxy-failover",
"search-detection",
]

if CONFIG["NIGHTLY_BUILD"]:
Expand Down
Loading