Skip to content

Commit 3a80a77

Browse files
authored
Merge branch 'mozilla-firefox:main' into s2sBranch
2 parents 91b723e + 2832885 commit 3a80a77

433 files changed

Lines changed: 6551 additions & 3860 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.

accessible/windows/msaa/MsaaAccessible.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ static const GUID IID_MsaaAccessible = {
4141
0x4afc,
4242
{0xa3, 0x2c, 0xd6, 0xb5, 0xc0, 0x10, 0x04, 0x6b}};
4343

44-
MOZ_RUNINIT MsaaIdGenerator MsaaAccessible::sIDGen;
44+
constinit MsaaIdGenerator MsaaAccessible::sIDGen;
4545
ITypeInfo* MsaaAccessible::gTypeInfo = nullptr;
4646

4747
/* static */
Lines changed: 4 additions & 0 deletions
Loading

browser/base/content/test/contextMenu/browser_strip_on_share_link.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -190,15 +190,15 @@ async function testStripOnShare({
190190
let testJson = {
191191
global: {
192192
queryParams: ["utm_ad"],
193-
topLevelSites: ["*"],
193+
isGlobal: true,
194194
},
195195
example: {
196196
queryParams: ["test_2", "test_1"],
197-
topLevelSites: ["www.example.com"],
197+
origins: ["www.example.com"],
198198
},
199199
exampleNet: {
200200
queryParams: ["test_3", "test_4"],
201-
topLevelSites: ["www.example.net"],
201+
origins: ["www.example.net"],
202202
},
203203
};
204204

browser/base/content/test/contextMenu/browser_strip_on_share_nested_link.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,15 +115,15 @@ async function testStripOnShare({ originalURI, strippedURI }) {
115115
let testJson = {
116116
global: {
117117
queryParams: ["utm_ad"],
118-
topLevelSites: ["*"],
118+
isGlobal: true,
119119
},
120120
example: {
121121
queryParams: ["test_2", "test_1"],
122-
topLevelSites: ["www.example.com"],
122+
origins: ["www.example.com"],
123123
},
124124
exampleNet: {
125125
queryParams: ["test_3", "test_4"],
126-
topLevelSites: ["www.example.net"],
126+
origins: ["www.example.net"],
127127
},
128128
};
129129

browser/base/jar.mn

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ browser.jar:
1616
content/browser/logos/etp-mobile.svg (content/logos/etp-mobile.svg)
1717
content/browser/logos/fxa-logo.svg (content/logos/fxa-logo.svg)
1818
content/browser/logos/ipprotection-error.svg (content/logos/ipprotection-error.svg)
19+
content/browser/logos/ipprotection-excluded.svg (content/logos/ipprotection-excluded.svg)
1920
content/browser/logos/ipprotection-off.svg (content/logos/ipprotection-off.svg)
2021
content/browser/logos/ipprotection-on.svg (content/logos/ipprotection-on.svg)
2122
content/browser/logos/lockwise.svg (content/logos/lockwise.svg)

browser/components/aiwindow/models/memories/MemoriesConversationScheduler.sys.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ ChromeUtils.defineLazyGetter(lazy, "console", function () {
2121
// Generate memories if there have been at least 10 user messages since the last run
2222
const MEMORIES_SCHEDULER_MESSAGES_THRESHOLD = 10;
2323

24-
// Conversation scheduler tick every 30 mins
25-
const MEMORIES_SCHEDULER_INTERVAL_MS = 30 * 60 * 1000;
24+
// Conversation scheduler tick every 2 mins
25+
const MEMORIES_SCHEDULER_INTERVAL_MS = 2 * 60 * 1000;
2626
// Cooldown period - don't run more than once every 4 hours
2727
const MEMORIES_SCHEDULER_COOLDOWN_MS = 4 * 60 * 60 * 1000;
2828

browser/components/aiwindow/models/memories/MemoriesHistoryScheduler.sys.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ const INITIAL_MEMORIES_PAGES_THRESHOLD = 10;
3131
// Only run if at least this many pages have been visited.
3232
const MEMORIES_SCHEDULER_PAGES_THRESHOLD = 15;
3333

34-
// Memories history schedule every 30 mins
35-
const MEMORIES_SCHEDULER_INTERVAL_MS = 30 * 60 * 1000;
34+
// Memories history schedule every 2 mins
35+
const MEMORIES_SCHEDULER_INTERVAL_MS = 2 * 60 * 1000;
3636
// Cooldown period - don't run more than once every 6 hours
3737
const MEMORIES_SCHEDULER_COOLDOWN_MS = 6 * 60 * 60 * 1000;
3838

browser/components/aiwindow/models/memories/MemoriesManager.sys.mjs

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,19 @@ export class MemoriesManager {
198198
topkAggregatesOpts
199199
);
200200
const sources = { history: [domainItems, titleItems, searchItems] };
201+
202+
const hasAnyHistory = sources.history.some(
203+
items => Array.isArray(items) && !!items.length
204+
);
205+
206+
if (!hasAnyHistory) {
207+
console.warn(
208+
"MemoriesManager.generateMemoriesFromBrowsingHistory: " +
209+
"History aggregates are empty; skipping memory generation."
210+
);
211+
return [];
212+
}
213+
201214
return await this.generateAndSaveMemoriesFromSources(
202215
sources,
203216
SOURCE_HISTORY
@@ -240,6 +253,15 @@ export class MemoriesManager {
240253
DEFAULT_CHAT_HALF_LIFE_DAYS_FULL_RESULTS
241254
);
242255
const sources = { conversation: chatMessages };
256+
257+
if (!Array.isArray(chatMessages) || chatMessages.length === 0) {
258+
console.warn(
259+
"MemoriesManager.generateMemoriesFromConversationHistory: " +
260+
"No recent chat messages found; skipping memory generation."
261+
);
262+
return [];
263+
}
264+
243265
return await this.generateAndSaveMemoriesFromSources(
244266
sources,
245267
SOURCE_CONVERSATION

0 commit comments

Comments
 (0)