forked from mozilla-mobile/android-components
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1663980 - Ship v18.1.0 of feature-webcompat
- Loading branch information
1 parent
35c99f4
commit eccea58
Showing
7 changed files
with
156 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 0 additions & 13 deletions
13
...n/assets/extensions/webcompat/injections/css/bug1632019-everyman.co-gallery-width-fix.css
This file was deleted.
Oops, something went wrong.
18 changes: 18 additions & 0 deletions
18
...n/assets/extensions/webcompat/injections/js/bug1631811-datastudio.google.com-indexedDB.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
"use strict"; | ||
|
||
/** | ||
* Bug 1631811 - disable indexedDB for datastudio.google.com iframes | ||
* | ||
* Indexed DB is disabled already for these iframes due to cookie blocking. | ||
* This intervention changes the functionality from throwing a SecurityError | ||
* when indexedDB is accessed to removing it from the window object | ||
*/ | ||
|
||
console.info( | ||
"window.indexedDB has been overwritten for compatibility reasons. See https://bugzilla.mozilla.org/show_bug.cgi?id=1631811 for details." | ||
); | ||
|
||
Object.defineProperty(window.wrappedJSObject, "indexedDB", { | ||
get: undefined, | ||
set: undefined, | ||
}); |
30 changes: 30 additions & 0 deletions
30
...src/main/assets/extensions/webcompat/injections/js/bug1665035-dckids.com-cookieEnabled.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
"use strict"; | ||
|
||
/** | ||
* Bug 1665035 - enable navigator.cookieEnabled and spoof window.navigator on Linux | ||
* | ||
* Some of the games are not starting because navigator.cookieEnabled | ||
* returns false for trackers with ETP strict. Overwriting the value allows | ||
* to play the games. In addition, Linux desktop devices are incorrectly | ||
* flagged as mobile devices (even if ETP is disabled), so spoofing | ||
* window.navigator.platform here. | ||
*/ | ||
|
||
console.info( | ||
"window.cookieEnabled has been overwritten for compatibility reasons. See https://bugzilla.mozilla.org/show_bug.cgi?id=1665035 for details." | ||
); | ||
|
||
Object.defineProperty(window.navigator.wrappedJSObject, "cookieEnabled", { | ||
value: true, | ||
writable: false, | ||
}); | ||
|
||
if (navigator.platform.includes("Linux")) { | ||
console.info( | ||
"navigator.platform has been overwritten for compatibility reasons. See https://bugzilla.mozilla.org/show_bug.cgi?id=1665035 for details." | ||
); | ||
Object.defineProperty(window.navigator.wrappedJSObject, "platform", { | ||
value: "Win64", | ||
writable: false, | ||
}); | ||
} |
20 changes: 20 additions & 0 deletions
20
...in/assets/extensions/webcompat/injections/js/bug1677442-store.hp.com-disable-indexeddb.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
"use strict"; | ||
|
||
/** | ||
* Bug 1677442 - disable indexedDB for d3nkfb7815bs43.cloudfront.net | ||
* | ||
* The site embeds an iframe with a 3D viewer. The request fails | ||
* because BabylonJS (the 3d library) tries to access indexedDB | ||
* from the third party context (d3nkfb7815bs43.cloudfront.net) | ||
* Disabling indexedDB fixes it, causing it to fetch the 3d resource | ||
* via network. | ||
*/ | ||
|
||
console.info( | ||
"window.indexedDB has been overwritten for compatibility reasons. See https://bugzilla.mozilla.org/show_bug.cgi?id=1677442 for details." | ||
); | ||
|
||
Object.defineProperty(window.wrappedJSObject, "indexedDB", { | ||
get: undefined, | ||
set: undefined, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters