Skip to content

Commit 9577e15

Browse files
Release build 11.18.0 [ci release]
1 parent c9a20c1 commit 9577e15

File tree

21 files changed

+3152
-1151
lines changed

21 files changed

+3152
-1151
lines changed

CHANGELOG.txt

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1 @@
1-
- ensure styletags aren't injected more than once on SPAs (#1952)
2-
- build(deps): bump @formkit/auto-animate from 0.8.4 to 0.9.0 (#1944)
3-
- build(deps-dev): bump the eslint group across 1 directory with 2 updates (#1951)
4-
- build(deps): bump actions/github-script from 7 to 8 (#1949)
5-
- build(deps-dev): bump jasmine and @types/jasmine (#1945)
6-
- build(deps): bump @atlaskit/pragmatic-drag-and-drop from 1.7.4 to 1.7.6 (#1943)
7-
- build(deps): bump @rive-app/canvas-single from 2.31.2 to 2.31.5 (#1942)
8-
- Fix <b> rendering issue for aiChat suggestions (#1941)
9-
- Deprecate visibilityMenuItems in contextMenu notification (#1938)
10-
- NTP: Add permanent “Ask Duck.ai” suggestion to end of suggestions list (#1939)
1+
- Page context follow ups (#1936)

build/android/adsjsContentScope.js

Lines changed: 47 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -530,16 +530,15 @@
530530
]
531531
);
532532
var platformSupport = {
533-
apple: ["webCompat", "duckPlayerNative", ...baseFeatures, "duckAiListener"],
533+
apple: ["webCompat", "duckPlayerNative", ...baseFeatures, "duckAiListener", "pageContext"],
534534
"apple-isolated": [
535535
"duckPlayer",
536536
"duckPlayerNative",
537537
"brokerProtection",
538538
"performanceMetrics",
539539
"clickToLoad",
540540
"messageBridge",
541-
"favicon",
542-
"pageContext"
541+
"favicon"
543542
],
544543
android: [...baseFeatures, "webCompat", "breakageReporting", "duckPlayer", "messageBridge"],
545544
"android-broker-protection": ["brokerProtection"],
@@ -564,7 +563,9 @@
564563
"brokerProtection",
565564
"breakageReporting",
566565
"messageBridge",
567-
"webCompat"
566+
"webCompat",
567+
"pageContext",
568+
"duckAiListener"
568569
],
569570
firefox: ["cookie", ...baseFeatures, "clickToLoad"],
570571
chrome: ["cookie", ...baseFeatures, "clickToLoad"],
@@ -3524,6 +3525,40 @@
35243525
get isDebug() {
35253526
return this.args?.debug || false;
35263527
}
3528+
get shouldLog() {
3529+
return this.isDebug;
3530+
}
3531+
/**
3532+
* Logging utility for this feature (Stolen some inspo from DuckPlayer logger, will unify in the future)
3533+
*/
3534+
get log() {
3535+
const shouldLog = this.shouldLog;
3536+
const prefix = `${this.name.padEnd(20, " ")} |`;
3537+
return {
3538+
// These are getters to have the call site be the reported line number.
3539+
get info() {
3540+
if (!shouldLog) {
3541+
return () => {
3542+
};
3543+
}
3544+
return console.log.bind(console, prefix);
3545+
},
3546+
get warn() {
3547+
if (!shouldLog) {
3548+
return () => {
3549+
};
3550+
}
3551+
return console.warn.bind(console, prefix);
3552+
},
3553+
get error() {
3554+
if (!shouldLog) {
3555+
return () => {
3556+
};
3557+
}
3558+
return console.error.bind(console, prefix);
3559+
}
3560+
};
3561+
}
35273562
get desktopModeEnabled() {
35283563
return this.args?.desktopModeEnabled || false;
35293564
}
@@ -5594,6 +5629,14 @@
55945629
}
55955630
});
55965631
historyMethodProxy.overload();
5632+
const historyMethodProxyReplace = new DDGProxy(urlChangedInstance, History.prototype, "replaceState", {
5633+
apply(target, thisArg, args) {
5634+
const changeResult = DDGReflect.apply(target, thisArg, args);
5635+
handleURLChange("replace");
5636+
return changeResult;
5637+
}
5638+
});
5639+
historyMethodProxyReplace.overload();
55975640
window.addEventListener("popstate", () => {
55985641
handleURLChange("traverse");
55995642
});

build/android/autofillPasswordImport.js

Lines changed: 47 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -538,16 +538,15 @@
538538
]
539539
);
540540
var platformSupport = {
541-
apple: ["webCompat", "duckPlayerNative", ...baseFeatures, "duckAiListener"],
541+
apple: ["webCompat", "duckPlayerNative", ...baseFeatures, "duckAiListener", "pageContext"],
542542
"apple-isolated": [
543543
"duckPlayer",
544544
"duckPlayerNative",
545545
"brokerProtection",
546546
"performanceMetrics",
547547
"clickToLoad",
548548
"messageBridge",
549-
"favicon",
550-
"pageContext"
549+
"favicon"
551550
],
552551
android: [...baseFeatures, "webCompat", "breakageReporting", "duckPlayer", "messageBridge"],
553552
"android-broker-protection": ["brokerProtection"],
@@ -572,7 +571,9 @@
572571
"brokerProtection",
573572
"breakageReporting",
574573
"messageBridge",
575-
"webCompat"
574+
"webCompat",
575+
"pageContext",
576+
"duckAiListener"
576577
],
577578
firefox: ["cookie", ...baseFeatures, "clickToLoad"],
578579
chrome: ["cookie", ...baseFeatures, "clickToLoad"],
@@ -3532,6 +3533,40 @@
35323533
get isDebug() {
35333534
return this.args?.debug || false;
35343535
}
3536+
get shouldLog() {
3537+
return this.isDebug;
3538+
}
3539+
/**
3540+
* Logging utility for this feature (Stolen some inspo from DuckPlayer logger, will unify in the future)
3541+
*/
3542+
get log() {
3543+
const shouldLog = this.shouldLog;
3544+
const prefix = `${this.name.padEnd(20, " ")} |`;
3545+
return {
3546+
// These are getters to have the call site be the reported line number.
3547+
get info() {
3548+
if (!shouldLog) {
3549+
return () => {
3550+
};
3551+
}
3552+
return console.log.bind(console, prefix);
3553+
},
3554+
get warn() {
3555+
if (!shouldLog) {
3556+
return () => {
3557+
};
3558+
}
3559+
return console.warn.bind(console, prefix);
3560+
},
3561+
get error() {
3562+
if (!shouldLog) {
3563+
return () => {
3564+
};
3565+
}
3566+
return console.error.bind(console, prefix);
3567+
}
3568+
};
3569+
}
35353570
get desktopModeEnabled() {
35363571
return this.args?.desktopModeEnabled || false;
35373572
}
@@ -4249,6 +4284,14 @@
42494284
}
42504285
});
42514286
historyMethodProxy.overload();
4287+
const historyMethodProxyReplace = new DDGProxy(urlChangedInstance, History.prototype, "replaceState", {
4288+
apply(target, thisArg, args) {
4289+
const changeResult = DDGReflect.apply(target, thisArg, args);
4290+
handleURLChange("replace");
4291+
return changeResult;
4292+
}
4293+
});
4294+
historyMethodProxyReplace.overload();
42524295
window.addEventListener("popstate", () => {
42534296
handleURLChange("traverse");
42544297
});

build/android/brokerProtection.js

Lines changed: 47 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2037,16 +2037,15 @@
20372037
]
20382038
);
20392039
var platformSupport = {
2040-
apple: ["webCompat", "duckPlayerNative", ...baseFeatures, "duckAiListener"],
2040+
apple: ["webCompat", "duckPlayerNative", ...baseFeatures, "duckAiListener", "pageContext"],
20412041
"apple-isolated": [
20422042
"duckPlayer",
20432043
"duckPlayerNative",
20442044
"brokerProtection",
20452045
"performanceMetrics",
20462046
"clickToLoad",
20472047
"messageBridge",
2048-
"favicon",
2049-
"pageContext"
2048+
"favicon"
20502049
],
20512050
android: [...baseFeatures, "webCompat", "breakageReporting", "duckPlayer", "messageBridge"],
20522051
"android-broker-protection": ["brokerProtection"],
@@ -2071,7 +2070,9 @@
20712070
"brokerProtection",
20722071
"breakageReporting",
20732072
"messageBridge",
2074-
"webCompat"
2073+
"webCompat",
2074+
"pageContext",
2075+
"duckAiListener"
20752076
],
20762077
firefox: ["cookie", ...baseFeatures, "clickToLoad"],
20772078
chrome: ["cookie", ...baseFeatures, "clickToLoad"],
@@ -5076,6 +5077,40 @@
50765077
get isDebug() {
50775078
return this.args?.debug || false;
50785079
}
5080+
get shouldLog() {
5081+
return this.isDebug;
5082+
}
5083+
/**
5084+
* Logging utility for this feature (Stolen some inspo from DuckPlayer logger, will unify in the future)
5085+
*/
5086+
get log() {
5087+
const shouldLog = this.shouldLog;
5088+
const prefix = `${this.name.padEnd(20, " ")} |`;
5089+
return {
5090+
// These are getters to have the call site be the reported line number.
5091+
get info() {
5092+
if (!shouldLog) {
5093+
return () => {
5094+
};
5095+
}
5096+
return console.log.bind(console, prefix);
5097+
},
5098+
get warn() {
5099+
if (!shouldLog) {
5100+
return () => {
5101+
};
5102+
}
5103+
return console.warn.bind(console, prefix);
5104+
},
5105+
get error() {
5106+
if (!shouldLog) {
5107+
return () => {
5108+
};
5109+
}
5110+
return console.error.bind(console, prefix);
5111+
}
5112+
};
5113+
}
50795114
get desktopModeEnabled() {
50805115
return this.args?.desktopModeEnabled || false;
50815116
}
@@ -8948,6 +8983,14 @@
89488983
}
89498984
});
89508985
historyMethodProxy.overload();
8986+
const historyMethodProxyReplace = new DDGProxy(urlChangedInstance, History.prototype, "replaceState", {
8987+
apply(target, thisArg, args) {
8988+
const changeResult = DDGReflect.apply(target, thisArg, args);
8989+
handleURLChange("replace");
8990+
return changeResult;
8991+
}
8992+
});
8993+
historyMethodProxyReplace.overload();
89518994
window.addEventListener("popstate", () => {
89528995
handleURLChange("traverse");
89538996
});

0 commit comments

Comments
 (0)