Skip to content

Commit dffbbbb

Browse files
Release build 4.45.0 [ci release]
1 parent e47807a commit dffbbbb

File tree

30 files changed

+1210
-1498
lines changed

30 files changed

+1210
-1498
lines changed

Sources/ContentScopeScripts/dist/contentScope.js

Lines changed: 96 additions & 121 deletions
Large diffs are not rendered by default.

Sources/ContentScopeScripts/dist/contentScopeIsolated.js

Lines changed: 89 additions & 143 deletions
Large diffs are not rendered by default.

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -871,15 +871,15 @@
871871
var AndroidMessagingTransport = class {
872872
/**
873873
* @param {AndroidMessagingConfig} config
874-
* @param {import('../index.js').MessagingContext} messagingContext
874+
* @param {MessagingContext} messagingContext
875875
* @internal
876876
*/
877877
constructor(config, messagingContext) {
878878
this.messagingContext = messagingContext;
879879
this.config = config;
880880
}
881881
/**
882-
* @param {import('../index.js').NotificationMessage} msg
882+
* @param {NotificationMessage} msg
883883
*/
884884
notify(msg) {
885885
try {
@@ -889,7 +889,7 @@
889889
}
890890
}
891891
/**
892-
* @param {import('../index.js').RequestMessage} msg
892+
* @param {RequestMessage} msg
893893
* @return {Promise<any>}
894894
*/
895895
request(msg) {
@@ -918,7 +918,7 @@
918918
});
919919
}
920920
/**
921-
* @param {import('../index.js').Subscription} msg
921+
* @param {Subscription} msg
922922
* @param {(value: unknown | undefined) => void} callback
923923
*/
924924
subscribe(msg, callback) {
@@ -939,7 +939,7 @@
939939
* @param {object} params
940940
* @param {Record<string, any>} params.target
941941
* @param {boolean} params.debug
942-
* @param {string} params.secret - a secret to ensure that messages are only
942+
* @param {string} params.messageSecret - a secret to ensure that messages are only
943943
* processed by the correct handler
944944
* @param {string} params.javascriptInterface - the name of the javascript interface
945945
* registered on the native side
@@ -950,7 +950,7 @@
950950
this.target = params.target;
951951
this.debug = params.debug;
952952
this.javascriptInterface = params.javascriptInterface;
953-
this.secret = params.secret;
953+
this.messageSecret = params.messageSecret;
954954
this.messageCallback = params.messageCallback;
955955
this.listeners = new globalThis.Map();
956956
this._captureGlobalHandler();
@@ -967,7 +967,7 @@
967967
* @internal
968968
*/
969969
sendMessageThrows(json) {
970-
this._capturedHandler(json, this.secret);
970+
this._capturedHandler(json, this.messageSecret);
971971
}
972972
/**
973973
* A subscription on Android is just a named listener. All messages from
@@ -1058,7 +1058,7 @@
10581058
*/
10591059
_assignHandlerMethod() {
10601060
const responseHandler = (providedSecret, response) => {
1061-
if (providedSecret === this.secret) {
1061+
if (providedSecret === this.messageSecret) {
10621062
this._dispatch(response);
10631063
}
10641064
};
@@ -1086,7 +1086,7 @@
10861086
var Messaging = class {
10871087
/**
10881088
* @param {MessagingContext} messagingContext
1089-
* @param {WebkitMessagingConfig | WindowsMessagingConfig | AndroidMessagingConfig | TestTransportConfig} config
1089+
* @param {MessagingConfig} config
10901090
*/
10911091
constructor(messagingContext, config) {
10921092
this.messagingContext = messagingContext;

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -557,15 +557,15 @@
557557
var AndroidMessagingTransport = class {
558558
/**
559559
* @param {AndroidMessagingConfig} config
560-
* @param {import('../index.js').MessagingContext} messagingContext
560+
* @param {MessagingContext} messagingContext
561561
* @internal
562562
*/
563563
constructor(config, messagingContext) {
564564
this.messagingContext = messagingContext;
565565
this.config = config;
566566
}
567567
/**
568-
* @param {import('../index.js').NotificationMessage} msg
568+
* @param {NotificationMessage} msg
569569
*/
570570
notify(msg) {
571571
try {
@@ -575,7 +575,7 @@
575575
}
576576
}
577577
/**
578-
* @param {import('../index.js').RequestMessage} msg
578+
* @param {RequestMessage} msg
579579
* @return {Promise<any>}
580580
*/
581581
request(msg) {
@@ -604,7 +604,7 @@
604604
});
605605
}
606606
/**
607-
* @param {import('../index.js').Subscription} msg
607+
* @param {Subscription} msg
608608
* @param {(value: unknown | undefined) => void} callback
609609
*/
610610
subscribe(msg, callback) {
@@ -625,7 +625,7 @@
625625
* @param {object} params
626626
* @param {Record<string, any>} params.target
627627
* @param {boolean} params.debug
628-
* @param {string} params.secret - a secret to ensure that messages are only
628+
* @param {string} params.messageSecret - a secret to ensure that messages are only
629629
* processed by the correct handler
630630
* @param {string} params.javascriptInterface - the name of the javascript interface
631631
* registered on the native side
@@ -636,7 +636,7 @@
636636
this.target = params.target;
637637
this.debug = params.debug;
638638
this.javascriptInterface = params.javascriptInterface;
639-
this.secret = params.secret;
639+
this.messageSecret = params.messageSecret;
640640
this.messageCallback = params.messageCallback;
641641
this.listeners = new globalThis.Map();
642642
this._captureGlobalHandler();
@@ -653,7 +653,7 @@
653653
* @internal
654654
*/
655655
sendMessageThrows(json) {
656-
this._capturedHandler(json, this.secret);
656+
this._capturedHandler(json, this.messageSecret);
657657
}
658658
/**
659659
* A subscription on Android is just a named listener. All messages from
@@ -744,7 +744,7 @@
744744
*/
745745
_assignHandlerMethod() {
746746
const responseHandler = (providedSecret, response) => {
747-
if (providedSecret === this.secret) {
747+
if (providedSecret === this.messageSecret) {
748748
this._dispatch(response);
749749
}
750750
};
@@ -772,7 +772,7 @@
772772
var Messaging = class {
773773
/**
774774
* @param {MessagingContext} messagingContext
775-
* @param {WebkitMessagingConfig | WindowsMessagingConfig | AndroidMessagingConfig | TestTransportConfig} config
775+
* @param {MessagingConfig} config
776776
*/
777777
constructor(messagingContext, config) {
778778
this.messagingContext = messagingContext;

build/android/contentScope.js

Lines changed: 147 additions & 229 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)