Skip to content

Commit be89730

Browse files
Landonfay@mozilla.com
authored andcommitted
Merge firefox-autoland to firefox-main
2 parents d4f7aac + f7a3be3 commit be89730

555 files changed

Lines changed: 11043 additions & 8311 deletions

File tree

Some content is hidden

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

.cargo/audit.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,4 @@ ignore = [
66
"RUSTSEC-2023-0018",
77
# paste <https://bugzilla.mozilla.org/show_bug.cgi?id=1998421>
88
"RUSTSEC-2024-0436",
9-
# serde_cbor <https://bugzilla.mozilla.org/show_bug.cgi?id=1998418>
10-
"RUSTSEC-2021-0127",
119
]

.cargo/config.toml.in

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,11 @@ git = "https://github.com/mozilla/audioipc"
6969
rev = "042d48dc5932ced772c2bf20a2aef2845fd6ec85"
7070
replace-with = "vendored-sources"
7171

72+
[source."git+https://github.com/mozilla/authenticator-rs?tag=v0.6.0"]
73+
git = "https://github.com/mozilla/authenticator-rs"
74+
tag = "v0.6.0"
75+
replace-with = "vendored-sources"
76+
7277
[source."git+https://github.com/mozilla/cubeb-coreaudio-rs?rev=0bb8a45a040e85d313eb18deb36570e87df3a6af"]
7378
git = "https://github.com/mozilla/cubeb-coreaudio-rs"
7479
rev = "0bb8a45a040e85d313eb18deb36570e87df3a6af"

Cargo.lock

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

Cargo.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -343,9 +343,6 @@ core-graphics-types = { path = "build/rust/core-graphics-types" }
343343
# Patch `dispatch2` to an empty crate that cannot be built.
344344
dispatch2 = { path = "build/rust/dispatch2" }
345345

346-
# Patch `half` 1.* to 2.
347-
half = { path = "build/rust/half" }
348-
349346
# Upgrade `rusqlite` 0.31 to 0.33.
350347
rusqlite = { path = "build/rust/rusqlite" }
351348

browser/base/content/browser-box.inc.xhtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
44

55
<hbox flex="1" id="browser">
6-
<box context="sidebar-context-menu" id="sidebar-main" class="chrome-block" hidden="true">
6+
<box context="sidebar-context-menu" id="sidebar-container" class="chrome-block" hidden="true">
77
<html:sidebar-main flex="1">
88
<box id="vertical-tabs" slot="tabstrip" customizable="true" contextmenu="toolbar-context-menu"></box>
99
</html:sidebar-main>

browser/base/content/navigator-toolbox.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,9 @@ document.addEventListener(
308308
}
309309
navigatorToolbox.addEventListener("click", onClick);
310310
widgetOverflow.addEventListener("click", onClick);
311-
document.getElementById("sidebar-main").addEventListener("click", onClick);
311+
document
312+
.getElementById("sidebar-container")
313+
.addEventListener("click", onClick);
312314

313315
function onKeyPress(event) {
314316
const isLikeLeftClick = event.key === "Enter" || event.key === " ";

browser/base/content/test/general/browser_backOrSidebarButtonFitts.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,20 +31,20 @@ async function test_back_button(x, y) {
3131

3232
async function test_sidebar_button(x, y) {
3333
// If the first button is the sidebar, check initial sidebar state
34-
let sidebarMain = document.getElementById("sidebar-main");
35-
let initialSidebarHiddenState = sidebarMain.hidden;
34+
let sidebarContainer = document.getElementById("sidebar-container");
35+
let initialSidebarHiddenState = sidebarContainer.hidden;
3636

3737
EventUtils.synthesizeMouseAtPoint(x, y, {}, window);
3838
is(
39-
sidebarMain.hidden,
39+
sidebarContainer.hidden,
4040
!initialSidebarHiddenState,
4141
"Clicking the first pixel should toggle the sidebar"
4242
);
4343

4444
// Ensure sidebar is put back into original state for following tests
4545
EventUtils.synthesizeMouseAtPoint(x, y, {}, window);
4646
is(
47-
sidebarMain.hidden,
47+
sidebarContainer.hidden,
4848
initialSidebarHiddenState,
4949
"Clicking the first pixel should toggle the sidebar"
5050
);

browser/components/aiwindow/models/Chat.sys.mjs

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@
44
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
55
*/
66

7-
import { ToolRoleOpts } from "moz-src:///browser/components/aiwindow/ui/modules/ChatMessage.sys.mjs";
7+
import {
8+
ToolRoleOpts,
9+
AssistantRoleOpts,
10+
} from "moz-src:///browser/components/aiwindow/ui/modules/ChatMessage.sys.mjs";
811
import { openAIEngine } from "moz-src:///browser/components/aiwindow/models/Utils.sys.mjs";
912
import {
1013
toolsConfig,
@@ -415,9 +418,13 @@ Object.assign(Chat, {
415418
arguments: tc.function.arguments || "{}",
416419
},
417420
}));
418-
conversation.addAssistantMessage("function", {
419-
tool_calls: blockedCalls,
420-
});
421+
conversation.addAssistantMessage(
422+
"function",
423+
{
424+
tool_calls: blockedCalls,
425+
},
426+
new AssistantRoleOpts(engineInstance.model)
427+
);
421428

422429
for (const tc of pendingToolCalls.slice(0, 1)) {
423430
const content = {
@@ -467,9 +474,13 @@ Object.assign(Chat, {
467474
conversation.tokenToUrl
468475
);
469476

470-
conversation.addAssistantMessage("function", {
471-
tool_calls: [lastToolCall],
472-
});
477+
conversation.addAssistantMessage(
478+
"function",
479+
{
480+
tool_calls: [lastToolCall],
481+
},
482+
new AssistantRoleOpts(engineInstance.model)
483+
);
473484

474485
lazy.AIWindow.chatStore?.updateConversation(conversation).catch(() => {});
475486

browser/components/aiwindow/ui/components/ai-window/ai-window.mjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1785,9 +1785,9 @@ export class AIWindow extends MozLitElement {
17851785
skipUserDispatch
17861786
);
17871787

1788-
// @todo
1789-
// fill out these assistant message flags
1790-
const assistantRoleOpts = new lazy.AssistantRoleOpts();
1788+
const assistantRoleOpts = new lazy.AssistantRoleOpts(
1789+
engineInstance.model
1790+
);
17911791
conversation.addAssistantMessage("text", "", assistantRoleOpts);
17921792

17931793
this.#sendModelRequestTelemetryEvent();

browser/components/aiwindow/ui/content/ai-window-shared.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
@media not (forced-colors) {
2424
/* Smart Window Nova Tokens */
2525
--smartwindow-text-color-accent-primary: light-dark(var(--color-violet-60), var(--color-violet-30));
26-
--smartwindow-icon-color-accent-primary-desaturated: light-dark(var(--color-purple-desaturated-50), var(--color-purple-desaturated-10));
26+
--smartwindow-icon-color-accent-primary-desaturated: light-dark(var(--color-violet-desaturated-60), var(--color-violet-desaturated-50));
2727

2828
--box-shadow-color-lighter-layer-1: color-mix(in srgb, var(--color-violet-70) 15%, transparent);
2929
--box-shadow-color-lighter-layer-2: color-mix(in srgb, var(--color-violet-70) 24%, transparent);

0 commit comments

Comments
 (0)