Remove DOM dimension noise and fix document.fonts to prevent site crashes
DOM element dimension noise (offsetWidth/Height etc.) broke complex web apps like Discord by returning fractional values where integers are expected. Removed entirely — measureText noise is sufficient for font enumeration. Changed document.fonts.check() to return true (uniform response) instead of false, which caused font loading logic to hang in apps waiting for fonts.
This commit is contained in:
@@ -27,8 +27,8 @@ Every website you visit is automatically placed in its own isolated container wi
|
||||
| Screen | Resolution, color depth, window dimensions |
|
||||
| Timezone | getTimezoneOffset, Date.toString, Intl.DateTimeFormat |
|
||||
| WebRTC | Forced relay-only ICE policy (blocks local IP leak) |
|
||||
| Fonts | Noise on measureText + DOM element dimensions (offsetWidth/Height etc.) |
|
||||
| Font API | document.fonts.check() blocked, size reports 0 |
|
||||
| Fonts | Noise on measureText (prevents font enumeration) |
|
||||
| Font API | document.fonts.check() returns uniform response |
|
||||
| ClientRects | Sub-pixel noise on getBoundingClientRect |
|
||||
| Plugins | Reports empty |
|
||||
| Battery | Always reports full/charging |
|
||||
|
||||
Reference in New Issue
Block a user