Skip to content

Commit 082084d

Browse files
sammacbethgithub-actions[bot]
authored andcommitted
Release build 4.27.1 [ci release]
1 parent f987606 commit 082084d

File tree

11 files changed

+19
-19
lines changed

11 files changed

+19
-19
lines changed

Sources/ContentScopeScripts/dist/contentScope.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@
173173
* @returns {boolean} if we infer the document is framed
174174
*/
175175
function isBeingFramed () {
176-
if ('ancestorOrigins' in globalThis.location) {
176+
if (globalThis.location && 'ancestorOrigins' in globalThis.location) {
177177
return globalThis.location.ancestorOrigins.length > 0
178178
}
179179
return globalThis.top !== globalThis.window
@@ -5309,7 +5309,7 @@
53095309
get: () => this.getFeatureAttr('pixelDepth', 24)
53105310
});
53115311

5312-
window.addEventListener('resize', function () {
5312+
globalThis.window.addEventListener('resize', function () {
53135313
setWindowDimensions();
53145314
});
53155315
setWindowDimensions();

Sources/ContentScopeScripts/dist/contentScopeIsolated.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
* @returns {boolean} if we infer the document is framed
2626
*/
2727
function isBeingFramed () {
28-
if ('ancestorOrigins' in globalThis.location) {
28+
if (globalThis.location && 'ancestorOrigins' in globalThis.location) {
2929
return globalThis.location.ancestorOrigins.length > 0
3030
}
3131
return globalThis.top !== globalThis.window

build/android/contentScope.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@
178178
* @returns {boolean} if we infer the document is framed
179179
*/
180180
function isBeingFramed () {
181-
if ('ancestorOrigins' in globalThis.location) {
181+
if (globalThis.location && 'ancestorOrigins' in globalThis.location) {
182182
return globalThis.location.ancestorOrigins.length > 0
183183
}
184184
return globalThis.top !== globalThis.window
@@ -6270,7 +6270,7 @@
62706270
get: () => this.getFeatureAttr('pixelDepth', 24)
62716271
});
62726272

6273-
window.addEventListener('resize', function () {
6273+
globalThis.window.addEventListener('resize', function () {
62746274
setWindowDimensions();
62756275
});
62766276
setWindowDimensions();

build/chrome-mv3/inject.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@
178178
* @returns {boolean} if we infer the document is framed
179179
*/
180180
function isBeingFramed () {
181-
if ('ancestorOrigins' in globalThis.location) {
181+
if (globalThis.location && 'ancestorOrigins' in globalThis.location) {
182182
return globalThis.location.ancestorOrigins.length > 0
183183
}
184184
return globalThis.top !== globalThis.window
@@ -6546,7 +6546,7 @@
65466546
get: () => this.getFeatureAttr('pixelDepth', 24)
65476547
});
65486548

6549-
window.addEventListener('resize', function () {
6549+
globalThis.window.addEventListener('resize', function () {
65506550
setWindowDimensions();
65516551
});
65526552
setWindowDimensions();

build/chrome/inject.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/contentScope.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@
214214
* @returns {boolean} if we infer the document is framed
215215
*/
216216
function isBeingFramed () {
217-
if ('ancestorOrigins' in globalThis.location) {
217+
if (globalThis.location && 'ancestorOrigins' in globalThis.location) {
218218
return globalThis.location.ancestorOrigins.length > 0
219219
}
220220
return globalThis.top !== globalThis.window
@@ -6259,7 +6259,7 @@
62596259
get: () => this.getFeatureAttr('pixelDepth', 24)
62606260
});
62616261

6262-
window.addEventListener('resize', function () {
6262+
globalThis.window.addEventListener('resize', function () {
62636263
setWindowDimensions();
62646264
});
62656265
setWindowDimensions();

build/firefox/inject.js

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

build/integration/contentScope.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@
214214
* @returns {boolean} if we infer the document is framed
215215
*/
216216
function isBeingFramed () {
217-
if ('ancestorOrigins' in globalThis.location) {
217+
if (globalThis.location && 'ancestorOrigins' in globalThis.location) {
218218
return globalThis.location.ancestorOrigins.length > 0
219219
}
220220
return globalThis.top !== globalThis.window
@@ -6259,7 +6259,7 @@
62596259
get: () => this.getFeatureAttr('pixelDepth', 24)
62606260
});
62616261

6262-
window.addEventListener('resize', function () {
6262+
globalThis.window.addEventListener('resize', function () {
62636263
setWindowDimensions();
62646264
});
62656265
setWindowDimensions();

build/windows/contentScope.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@
173173
* @returns {boolean} if we infer the document is framed
174174
*/
175175
function isBeingFramed () {
176-
if ('ancestorOrigins' in globalThis.location) {
176+
if (globalThis.location && 'ancestorOrigins' in globalThis.location) {
177177
return globalThis.location.ancestorOrigins.length > 0
178178
}
179179
return globalThis.top !== globalThis.window
@@ -6588,7 +6588,7 @@
65886588
get: () => this.getFeatureAttr('pixelDepth', 24)
65896589
});
65906590

6591-
window.addEventListener('resize', function () {
6591+
globalThis.window.addEventListener('resize', function () {
65926592
setWindowDimensions();
65936593
});
65946594
setWindowDimensions();

src/features/fingerprinting-screen-size.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ export default class FingerprintingScreenSize extends ContentFeature {
126126
get: () => this.getFeatureAttr('pixelDepth', 24)
127127
})
128128

129-
window.addEventListener('resize', function () {
129+
globalThis.window.addEventListener('resize', function () {
130130
setWindowDimensions()
131131
})
132132
setWindowDimensions()

0 commit comments

Comments
 (0)