Skip to content

Commit 40e8497

Browse files
noisysocksgithub-actions[bot]
authored andcommitted
Release build 10.12.0 [ci release]
1 parent 0d45118 commit 40e8497

File tree

56 files changed

+1817
-971
lines changed

Some content is hidden

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

56 files changed

+1817
-971
lines changed

CHANGELOG.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
1-
- NTP: Style Omnibar to match specs (#1811)
1+
- NTP: Display URL in if Omnibar suggestion title is empty (#1825)
2+
- Move focus to input when switching Omnibar tabs (#1823)
3+
- NTP: Reset omnibar after form submission (#1819)
4+
- NTP: Set target to 'new-tab' and 'new-window' properly when submitting Omnibar (#1824)
5+
- Fix TabSwitcher icon shifting by 1px when animating in WebKit (#1822)
6+
- messaging: move docs to Markdown and never throw on calls to .notify (#1817)

Sources/ContentScopeScripts/dist/contentScope.js

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2389,7 +2389,6 @@
23892389
}
23902390
/**
23912391
* Send a 'fire-and-forget' message.
2392-
* @throws {MissingHandler}
23932392
*
23942393
* @example
23952394
*
@@ -2407,11 +2406,18 @@
24072406
method: name,
24082407
params: data
24092408
});
2410-
this.transport.notify(message);
2409+
try {
2410+
this.transport.notify(message);
2411+
} catch (e) {
2412+
if (this.messagingContext.env === "development") {
2413+
console.error("[Messaging] Failed to send notification:", e);
2414+
console.error("[Messaging] Message details:", { name, data });
2415+
}
2416+
}
24112417
}
24122418
/**
2413-
* Send a request, and wait for a response
2414-
* @throws {MissingHandler}
2419+
* Send a request and wait for a response
2420+
* @throws {Error}
24152421
*
24162422
* @example
24172423
* ```

Sources/ContentScopeScripts/dist/contentScopeIsolated.js

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3094,7 +3094,6 @@
30943094
}
30953095
/**
30963096
* Send a 'fire-and-forget' message.
3097-
* @throws {MissingHandler}
30983097
*
30993098
* @example
31003099
*
@@ -3112,11 +3111,18 @@
31123111
method: name,
31133112
params: data2
31143113
});
3115-
this.transport.notify(message);
3114+
try {
3115+
this.transport.notify(message);
3116+
} catch (e) {
3117+
if (this.messagingContext.env === "development") {
3118+
console.error("[Messaging] Failed to send notification:", e);
3119+
console.error("[Messaging] Message details:", { name, data: data2 });
3120+
}
3121+
}
31163122
}
31173123
/**
3118-
* Send a request, and wait for a response
3119-
* @throws {MissingHandler}
3124+
* Send a request and wait for a response
3125+
* @throws {Error}
31203126
*
31213127
* @example
31223128
* ```

Sources/ContentScopeScripts/dist/pages/duckplayer/dist/index.js

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -874,7 +874,6 @@
874874
}
875875
/**
876876
* Send a 'fire-and-forget' message.
877-
* @throws {MissingHandler}
878877
*
879878
* @example
880879
*
@@ -892,11 +891,18 @@
892891
method: name,
893892
params: data
894893
});
895-
this.transport.notify(message);
894+
try {
895+
this.transport.notify(message);
896+
} catch (e3) {
897+
if (this.messagingContext.env === "development") {
898+
console.error("[Messaging] Failed to send notification:", e3);
899+
console.error("[Messaging] Message details:", { name, data });
900+
}
901+
}
896902
}
897903
/**
898-
* Send a request, and wait for a response
899-
* @throws {MissingHandler}
904+
* Send a request and wait for a response
905+
* @throws {Error}
900906
*
901907
* @example
902908
* ```

Sources/ContentScopeScripts/dist/pages/duckplayer/index.html

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2029,7 +2029,6 @@
20292029
}
20302030
/**
20312031
* Send a 'fire-and-forget' message.
2032-
* @throws {MissingHandler}
20332032
*
20342033
* @example
20352034
*
@@ -2047,11 +2046,18 @@
20472046
method: name,
20482047
params: data
20492048
});
2050-
this.transport.notify(message);
2049+
try {
2050+
this.transport.notify(message);
2051+
} catch (e3) {
2052+
if (this.messagingContext.env === "development") {
2053+
console.error("[Messaging] Failed to send notification:", e3);
2054+
console.error("[Messaging] Message details:", { name, data });
2055+
}
2056+
}
20512057
}
20522058
/**
2053-
* Send a request, and wait for a response
2054-
* @throws {MissingHandler}
2059+
* Send a request and wait for a response
2060+
* @throws {Error}
20552061
*
20562062
* @example
20572063
* ```

Sources/ContentScopeScripts/dist/pages/history/dist/index.js

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1165,7 +1165,6 @@
11651165
}
11661166
/**
11671167
* Send a 'fire-and-forget' message.
1168-
* @throws {MissingHandler}
11691168
*
11701169
* @example
11711170
*
@@ -1183,11 +1182,18 @@
11831182
method: name,
11841183
params: data
11851184
});
1186-
this.transport.notify(message);
1185+
try {
1186+
this.transport.notify(message);
1187+
} catch (e4) {
1188+
if (this.messagingContext.env === "development") {
1189+
console.error("[Messaging] Failed to send notification:", e4);
1190+
console.error("[Messaging] Message details:", { name, data });
1191+
}
1192+
}
11871193
}
11881194
/**
1189-
* Send a request, and wait for a response
1190-
* @throws {MissingHandler}
1195+
* Send a request and wait for a response
1196+
* @throws {Error}
11911197
*
11921198
* @example
11931199
* ```

Sources/ContentScopeScripts/dist/pages/new-tab/dist/index.css

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1523,6 +1523,34 @@ body:not([data-platform-name]) .Button_button:active {
15231523
box-shadow: var(--focus-ring);
15241524
}
15251525

1526+
/* pages/new-tab/app/omnibar/components/Container.module.css */
1527+
.Container_outer {
1528+
align-self: stretch;
1529+
z-index: 1;
1530+
}
1531+
.Container_inner {
1532+
background: var(--ntp-surface-tertiary);
1533+
border-radius: 11px;
1534+
box-shadow: 0px 1px 4px 0px rgba(0, 0, 0, 0.1), 0px 4px 8px 0px rgba(0, 0, 0, 0.08);
1535+
margin: 0 calc(-1 * var(--sp-1));
1536+
overflow: hidden;
1537+
position: relative;
1538+
transition: height 200ms ease;
1539+
}
1540+
@media (prefers-reduced-motion: reduce) {
1541+
.Container_inner {
1542+
transition: none;
1543+
}
1544+
}
1545+
.Container_inner:focus-within {
1546+
border-radius: 14px;
1547+
box-shadow: 0 0 0 2px var(--ntp-color-primary), 0 0 0 4px rgba(57, 105, 239, 0.2);
1548+
}
1549+
.Container_inner:has([role=listbox]) {
1550+
border-radius: 16px;
1551+
box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.08), 0px 4px 8px 0px rgba(0, 0, 0, 0.16);
1552+
}
1553+
15261554
/* pages/new-tab/app/omnibar/components/Omnibar.module.css */
15271555
.Omnibar_root {
15281556
align-items: center;
@@ -1606,7 +1634,6 @@ body:not([data-platform-name]) .Button_button:active {
16061634
gap: 6px;
16071635
height: var(--sp-8);
16081636
justify-content: center;
1609-
padding: 0 var(--sp-4);
16101637
padding: 0;
16111638
width: 92px;
16121639
z-index: 1;
@@ -1624,41 +1651,14 @@ body:not([data-platform-name]) .Button_button:active {
16241651
position: absolute;
16251652
top: 0;
16261653
transition: translate 200ms ease;
1654+
will-change: translate;
16271655
}
16281656
@media (prefers-reduced-motion: reduce) {
16291657
.TabSwitcher_blob {
16301658
transition: none;
16311659
}
16321660
}
16331661

1634-
/* pages/new-tab/app/omnibar/components/Container.module.css */
1635-
.Container_outer {
1636-
align-self: stretch;
1637-
z-index: 1;
1638-
}
1639-
.Container_inner {
1640-
background: var(--ntp-surface-tertiary);
1641-
border-radius: 11px;
1642-
box-shadow: 0px 1px 4px 0px rgba(0, 0, 0, 0.1), 0px 4px 8px 0px rgba(0, 0, 0, 0.08);
1643-
margin: 0 calc(-1 * var(--sp-1));
1644-
overflow: hidden;
1645-
position: relative;
1646-
transition: height 200ms ease;
1647-
}
1648-
@media (prefers-reduced-motion: reduce) {
1649-
.Container_inner {
1650-
transition: none;
1651-
}
1652-
}
1653-
.Container_inner:focus-within {
1654-
border-radius: 14px;
1655-
box-shadow: 0 0 0 2px var(--ntp-color-primary), 0 0 0 4px rgba(57, 105, 239, 0.2);
1656-
}
1657-
.Container_inner:has([role=listbox]) {
1658-
border-radius: 16px;
1659-
box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.08), 0px 4px 8px 0px rgba(0, 0, 0, 0.16);
1660-
}
1661-
16621662
/* pages/new-tab/app/protections/components/Protections.module.css */
16631663
.Protections_root {
16641664
background: var(--ntp-surface-background-color);

0 commit comments

Comments
 (0)