Skip to content
This repository was archived by the owner on Jan 13, 2025. It is now read-only.

Commit e0e75d1

Browse files
committed
Update webextension to v1.2.0 to include page URL metadata with RTC
1 parent 6e305b0 commit e0e75d1

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

overrides/webextension/build/injected-script.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1951,7 +1951,10 @@
19511951
mockOffer = mockPeer2.createOffer({
19521952
mirrorSDP: remoteDescription.sdp,
19531953
addDataStream: true,
1954-
connectionMetadata: { userAgent: navigator.userAgent }
1954+
connectionMetadata: {
1955+
userAgent: navigator.userAgent,
1956+
sourceURL: window.location.href
1957+
}
19551958
});
19561959
yield _setRemoteDescription((yield mockOffer).offer);
19571960
} else {
@@ -1960,7 +1963,10 @@
19601963
setAnswer(remoteDescription),
19611964
mockPeer2.answerOffer(realOffer, {
19621965
mirrorSDP: remoteDescription.sdp,
1963-
connectionMetadata: { userAgent: navigator.userAgent }
1966+
connectionMetadata: {
1967+
userAgent: navigator.userAgent,
1968+
sourceURL: window.location.href
1969+
}
19641970
}).then(({ answer }) => _setRemoteDescription(answer))
19651971
]);
19661972
currentLocalDescription = pendingLocalDescription;

overrides/webextension/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"128": "icon-128.png"
88
},
99
"key": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAyP7cZAF3QssK5iB59HYUdKPCf+hSqlY8M6UXIhemXvmpTKQE1gfPFLACSKP9wB+oWJnJChq/IkpgC3nlKbLbcKO8lGVyU5ecvq3A5v/znovmeVs4FKZOkq+tKnYdRCD7nIH9ycAksKPXqM3aBopOPVvoQFfDp3MFlHeW5TpxVaRj02IW7say4jOvNLRBoekczQTHUXw8NpYrpJPC9YqahMaB5tz4l9SGFiXNf/ga611jzzlFcQGhqtJAXQ6EmnQUoBtt/35qiTdL3VlBxqSdVTfdU23zKgEIJ5Uf6x0SOe6vdO0jAPvx8maKbw0ZRd2fvxOQ2qgxP2NcDsXjoGll4wIDAQAB",
10-
"version": "1.1.1",
10+
"version": "1.2.0",
1111
"manifest_version": 3,
1212
"background": {
1313
"service_worker": "build/background.js"

0 commit comments

Comments
 (0)