Skip to content

Commit ac71874

Browse files
authored
Merge pull request #315 from mozilla/enterprise-main_merge_20260105
Enterprise main merge 20260105
2 parents 0cb035c + 54bb6df commit ac71874

File tree

883 files changed

+39643
-9080
lines changed

Some content is hidden

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

883 files changed

+39643
-9080
lines changed

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ exclude = [
6666
resolver = "2"
6767

6868
[workspace.package]
69-
rust-version = "1.82.0"
69+
rust-version = "1.87.0"
7070

7171
[workspace.dependencies]
7272
# Shared across multiple UniFFI consumers.

browser/app/profile/firefox.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2255,8 +2255,9 @@ pref("browser.aiwindow.enabled", false);
22552255
pref("browser.aiwindow.endpoint", "https://mlpa-prod-prod-mozilla.global.ssl.fastly.net/v1");
22562256
pref("browser.aiwindow.insights", false);
22572257
pref("browser.aiwindow.insightsLogLevel", "Warn");
2258+
pref("browser.aiwindow.firstrun.autoAdvanceMS", 3000);
22582259
pref("browser.aiwindow.firstrun.modelChoice", "");
2259-
pref("browser.aiwindow.model", "");
2260+
pref("browser.aiwindow.model", "qwen3-235b-a22b-instruct-2507-maas");
22602261

22612262
// Block insecure active content on https pages
22622263
pref("security.mixed_content.block_active_content", true);
@@ -2912,7 +2913,7 @@ pref("browser.toolbars.bookmarks.showOtherBookmarks", true);
29122913

29132914
// Felt Privacy pref to control simplified private browsing UI
29142915
pref("browser.privatebrowsing.felt-privacy-v1", false);
2915-
pref("security.certerrors.felt-privacy-v1", false);
2916+
pref("security.certerrors.felt-privacy-v1", true);
29162917

29172918
// Prefs to control the Firefox Account toolbar menu.
29182919
// This pref will surface existing Firefox Account information

browser/base/content/appmenu-viewcache.inc.xhtml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,10 @@
7373
data-l10n-id="appmenuitem-history"
7474
closemenu="none"
7575
/>
76+
<toolbarbutton id="appMenu-chats-history-button"
77+
class="subviewbutton"
78+
data-l10n-id="menu-history-chats"
79+
command="Tools:ChatsHistory"/>
7680
<toolbarbutton id="appMenu-downloads-button"
7781
class="subviewbutton"
7882
data-l10n-id="appmenuitem-downloads"

browser/base/content/browser-main.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@
3232
Services.scriptloader.loadSubScript("chrome://browser/content/places/places-menupopup.js", this);
3333
Services.scriptloader.loadSubScript("chrome://browser/content/search/autocomplete-popup.js", this);
3434
Services.scriptloader.loadSubScript("chrome://browser/content/search/searchbar.js", this);
35+
if (AIWindow.isOpeningAIWindow(window)) {
36+
ChromeUtils.importESModule("chrome://browser/content/urlbar/SmartbarInput.mjs", { global: "current" });
37+
}
3538
ChromeUtils.importESModule("chrome://browser/content/urlbar/UrlbarInput.mjs", { global: "current" });
3639
}
3740

browser/base/content/browser-menubar.inc

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,11 @@
214214
<menuitem id="menu_showAllHistory"
215215
key="showAllHistoryKb"
216216
command="Browser:ShowAllHistory" data-l10n-id="menu-history-show-all-history"/>
217+
218+
<menuitem id="chatsHistoryMenu" class="chats-history-menuitem"
219+
data-l10n-id="menu-history-chats"
220+
disabled="true" hidden="true" command="Tools:ChatsHistory"/>
221+
217222
<menuitem id="sanitizeItem"
218223
key="key_sanitize"
219224
command="Tools:Sanitize" data-l10n-id="menu-history-clear-recent-history"/>
@@ -255,8 +260,16 @@
255260
#endif
256261
</menupopup>
257262
</menu>
263+
264+
<menuseparator id="startChatHistorySeparator" hidden="true"/>
265+
<menuitem id="recentChatsHeader" class="recent-chats-header"
266+
data-l10n-id="menu-history-chats-recent"
267+
disabled="true" hidden="true"/>
268+
<!-- Chat history menu items -->
269+
258270
<menuseparator id="startHistorySeparator"
259271
class="hide-if-empty-places-result"/>
272+
260273
</menupopup>
261274
</menu>
262275

browser/base/content/browser-menubar.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,8 @@ document.addEventListener(
181181
if (!event.target.parentNode._placesView) {
182182
new HistoryMenu(event);
183183
}
184+
185+
AIWindow.appMenu(event, window);
184186
break;
185187
case "historyUndoPopup":
186188
document

browser/base/content/browser-sets.inc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@
9898
<command id="Tools:Addons" />
9999
<command id="cmd_openUnifiedExtensionsPanel" />
100100
<command id="Tools:AIWindow" />
101+
<command id="Tools:ChatsHistory" />
101102
<command id="Tools:ClassicWindow" />
102103
<command id="Tools:Sanitize" />
103104
<command id="Tools:PrivateBrowsing" />

browser/base/content/browser-sets.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,10 @@ document.addEventListener(
233233
case "Tools:AIWindow":
234234
OpenBrowserWindow({ aiWindow: true });
235235
break;
236+
case "Tools:ChatsHistory":
237+
// @todo Bug 2006543
238+
// Implement opening the chat history view
239+
break;
236240
case "Tools:Sanitize":
237241
Sanitizer.showUI(window);
238242
break;

browser/base/content/test/about/browser_aboutCertError_cca_telemetry.js

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,10 @@ async function checkTelemetry(expectedIssuedByCCA) {
4545
]);
4646
}
4747

48-
add_task(async function test_cca_site() {
48+
async function test_cca_site(useFeltPrivacyV1) {
49+
await SpecialPowers.pushPrefEnv({
50+
set: [["security.certerrors.felt-privacy-v1", useFeltPrivacyV1]],
51+
});
4952
await resetTelemetry();
5053
let browser;
5154
let pageLoaded;
@@ -66,9 +69,12 @@ add_task(async function test_cca_site() {
6669
// Check that telemetry indicates this was issued by CCA.
6770
await checkTelemetry("true");
6871
BrowserTestUtils.removeTab(gBrowser.selectedTab);
69-
});
72+
}
7073

71-
add_task(async function test_non_cca_site() {
74+
async function test_non_cca_site(useFeltPrivacyV1) {
75+
await SpecialPowers.pushPrefEnv({
76+
set: [["security.certerrors.felt-privacy-v1", useFeltPrivacyV1]],
77+
});
7278
await resetTelemetry();
7379
let browser;
7480
let pageLoaded;
@@ -89,4 +95,16 @@ add_task(async function test_non_cca_site() {
8995
// Check that telemetry indicates this was not issued by CCA.
9096
await checkTelemetry("false");
9197
BrowserTestUtils.removeTab(gBrowser.selectedTab);
98+
}
99+
100+
add_task(async function test_cca_sites() {
101+
for (const useFeltPrivacyV1 of [true, false]) {
102+
await test_cca_site(useFeltPrivacyV1);
103+
}
104+
});
105+
106+
add_task(async function test_non_cca_sites() {
107+
for (const useFeltPrivacyV1 of [true, false]) {
108+
await test_non_cca_site(useFeltPrivacyV1);
109+
}
92110
});

0 commit comments

Comments
 (0)