Commit 592765e
committed
Remove base64 encoded binaries in <style>
It turns out that there are a lot of exensions in the world, and sometimes those extensions modify the DOM of the page (ours included). Generally we don't have a problem with this, but if an extension injects a large base64-encoded binary into the mix, then we run into problems. This is mostly because the request size very quickly can be bloated beyond the max. This change targets one particular place where this happens the most, in the <style> tag where someone may inject a custom font into the page. When we detect this, we remove the style (from our copy of the DOM) before sending it up.1 parent 63ce6b2 commit 592765e
1 file changed
+12
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
198 | 209 | | |
199 | 210 | | |
200 | 211 | | |
| |||
332 | 343 | | |
333 | 344 | | |
334 | 345 | | |
| 346 | + | |
335 | 347 | | |
336 | 348 | | |
337 | 349 | | |
| |||
0 commit comments