Skip to content

Commit c81de29

Browse files
Merge pull request #1150 from Floorp-Projects/upstream-esr115-20240516035433
Pull upstream
2 parents 3000a1e + dd3d6dc commit c81de29

File tree

84 files changed

+3645
-5258
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

84 files changed

+3645
-5258
lines changed

.hgtags

+2
Original file line numberDiff line numberDiff line change
@@ -4404,3 +4404,5 @@ f65068dc82bf6051f520551ba5497a5985877d47 FIREFOX_115_9_1esr_BUILD1
44044404
f65068dc82bf6051f520551ba5497a5985877d47 FIREFOX_115_9_1esr_RELEASE
44054405
64fc0d6e7ff6b1d626e40d45c492fa210591a1c0 FIREFOX_115_10_0esr_BUILD1
44064406
64fc0d6e7ff6b1d626e40d45c492fa210591a1c0 FIREFOX_115_10_0esr_RELEASE
4407+
36d2dde067333d0c181cb8e21b12b73c307575db FIREFOX_115_11_0esr_BUILD1
4408+
36d2dde067333d0c181cb8e21b12b73c307575db FIREFOX_115_11_0esr_RELEASE

CLOBBER

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@
2222
# changes to stick? As of bug 928195, this shouldn't be necessary! Please
2323
# don't change CLOBBER for WebIDL changes any more.
2424

25-
Merge day clobber 2024-04-15
25+
Merge day clobber 2024-05-13

browser/base/content/tabbrowser.js

-12
Original file line numberDiff line numberDiff line change
@@ -2128,18 +2128,6 @@
21282128
// doesn't keep the window alive.
21292129
b.permanentKey = new (Cu.getGlobalForObject(Services).Object)();
21302130

2131-
// Ensure that SessionStore has flushed any session history state from the
2132-
// content process before we this browser's remoteness.
2133-
if (!Services.appinfo.sessionHistoryInParent) {
2134-
b.prepareToChangeRemoteness = () =>
2135-
SessionStore.prepareToChangeRemoteness(b);
2136-
b.afterChangeRemoteness = switchId => {
2137-
let tab = this.getTabForBrowser(b);
2138-
SessionStore.finishTabRemotenessChange(tab, switchId);
2139-
return true;
2140-
};
2141-
}
2142-
21432131
const defaultBrowserAttributes = {
21442132
contextmenu: "contentAreaContextMenu",
21452133
message: "true",

browser/base/content/test/performance/browser_startup_content.js

-7
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,6 @@ const known_scripts = {
5555
]),
5656
};
5757

58-
if (!Services.appinfo.sessionHistoryInParent) {
59-
known_scripts.modules.add(
60-
"resource:///modules/sessionstore/ContentSessionStore.sys.mjs"
61-
);
62-
}
63-
6458
if (AppConstants.NIGHTLY_BUILD) {
6559
// Browser front-end.
6660
known_scripts.modules.add("resource:///actors/InteractionsChild.sys.mjs");
@@ -71,7 +65,6 @@ if (AppConstants.NIGHTLY_BUILD) {
7165
const intermittently_loaded_scripts = {
7266
modules: new Set([
7367
"resource://gre/modules/nsAsyncShutdown.sys.mjs",
74-
"resource://gre/modules/sessionstore/Utils.sys.mjs",
7568

7669
// Translations code which may be preffed on.
7770
"resource://gre/actors/TranslationsChild.sys.mjs",

browser/components/customizableui/CustomizeMode.sys.mjs

-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ const lazy = {};
2727
ChromeUtils.defineESModuleGetters(lazy, {
2828
AddonManager: "resource://gre/modules/AddonManager.sys.mjs",
2929
DragPositionManager: "resource:///modules/DragPositionManager.sys.mjs",
30-
SessionStore: "resource:///modules/sessionstore/SessionStore.sys.mjs",
3130
URILoadingHelper: "resource:///modules/URILoadingHelper.sys.mjs",
3231
});
3332
ChromeUtils.defineModuleGetter(
@@ -225,7 +224,6 @@ CustomizeMode.prototype = {
225224
gTab = aTab;
226225

227226
gTab.setAttribute("customizemode", "true");
228-
lazy.SessionStore.persistTabAttribute("customizemode");
229227

230228
if (gTab.linkedPanel) {
231229
gTab.linkedBrowser.stop();

browser/components/enterprisepolicies/Policies.sys.mjs

+4-6
Original file line numberDiff line numberDiff line change
@@ -1906,13 +1906,11 @@ export var Policies = {
19061906
onBeforeAddons(manager, param) {
19071907
if (param.Locked) {
19081908
manager.disallowFeature("changeProxySettings");
1909-
lazy.ProxyPolicies.configureProxySettings(param, setAndLockPref);
1910-
} else {
1911-
lazy.ProxyPolicies.configureProxySettings(
1912-
param,
1913-
PoliciesUtils.setDefaultPref
1914-
);
19151909
}
1910+
lazy.ProxyPolicies.configureProxySettings(
1911+
param,
1912+
PoliciesUtils.setDefaultPref
1913+
);
19161914
},
19171915
},
19181916

browser/components/enterprisepolicies/helpers/ProxyPolicies.sys.mjs

+24
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,22 @@ export var PROXY_TYPES_MAP = new Map([
3131
["autoConfig", Ci.nsIProtocolProxyService.PROXYCONFIG_PAC],
3232
]);
3333

34+
let proxyPreferences = [
35+
"network.proxy.type",
36+
"network.proxy.autoconfig_url",
37+
"network.proxy.socks_remote_dns",
38+
"signon.autologin.proxy",
39+
"network.proxy.socks_version",
40+
"network.proxy.no_proxies_on",
41+
"network.proxy.share_proxy_settings",
42+
"network.proxy.http",
43+
"network.proxy.http_port",
44+
"network.proxy.ssl",
45+
"network.proxy.ssl_port",
46+
"network.proxy.socks",
47+
"network.proxy.socks_port",
48+
];
49+
3450
export var ProxyPolicies = {
3551
configureProxySettings(param, setPref) {
3652
if (param.Mode) {
@@ -107,5 +123,13 @@ export var ProxyPolicies = {
107123
if (param.SOCKSProxy) {
108124
setProxyHostAndPort("socks", param.SOCKSProxy);
109125
}
126+
127+
// All preferences should be locked regardless of whether or not a
128+
// specific value was set.
129+
if (param.Locked) {
130+
for (let preference of proxyPreferences) {
131+
Services.prefs.lockPref(preference);
132+
}
133+
}
110134
},
111135
};

browser/components/enterprisepolicies/tests/xpcshell/test_simple_pref_policies.js

+12
Original file line numberDiff line numberDiff line change
@@ -1034,6 +1034,18 @@ const POLICIES_TESTS = [
10341034
"extensions.formautofill.creditCards.enabled": false,
10351035
},
10361036
},
1037+
1038+
// POLICY: Proxy - locking if no values are set
1039+
{
1040+
policies: {
1041+
Proxy: {
1042+
Locked: true,
1043+
},
1044+
},
1045+
lockedPrefs: {
1046+
"network.proxy.type": 5,
1047+
},
1048+
},
10371049
];
10381050

10391051
add_task(async function test_policy_simple_prefs() {

0 commit comments

Comments
 (0)