1
0
mirror of https://github.com/roytam1/UXP.git synced 2026-05-26 13:58:49 +00:00

22 Commits

Author SHA1 Message Date
Moonchild 659a3c0fcc Issue #2258 - Make sure we favor sniffing when the content-type header is empty. 2025-09-26 23:15:48 +08:00
Moonchild 0d00c84033 Revert "Issue #2258 - Part 1: Support XCTO:nosniff when navigating."
This reverts commit f48c770701e62c382631620f4caa1fdc5ab1d7ae.
2025-09-26 23:15:31 +08:00
Moonchild 73c9c1dd73 Revert "Issue #2258 - Part 2: Move XCTO:nosniff check into sniffers."
This reverts commit 51e1650d42b2c033d5d55750b4ea497053524c93.
2025-09-26 23:15:12 +08:00
Moonchild 2d4d48db72 Revert "Issue #2258 - Part 3: Allow sniffing with XCTO:nosniff + empty MIME type."
This reverts commit a56f978f70e2d96ba501d6a944be33460afc481a.
2025-09-26 23:14:52 +08:00
Moonchild 7b4bb08257 Revert "Issue #2258 - Part 4: Clean up unused pointers."
This reverts commit 9e52953e5486412bcb5613b4cea5a4f54544db2e.
2025-09-26 23:14:28 +08:00
Moonchild bd734f795c Issue #2258 - Part 4: Clean up unused pointers. 2025-08-18 09:47:53 +08:00
Moonchild 707c3e3fa8 Issue #2258 - Part 3: Allow sniffing with XCTO:nosniff + empty MIME type.
This moves the checking code back to NS_SniffContent and specifically
checks requests for either:
- Empty `Content-type` header, OR
- A known JSON MIME type

If present, sniffing is allowed despite `nosniff` because in the first
case this is webmaster error (conflicting `nosniff` without MIME type
would always fail, so sniff it), and in the second case we need this
carveout or our json viewer will break.
2025-08-18 09:47:36 +08:00
Moonchild cca20ae131 Issue #2258 - Part 2: Move XCTO:nosniff check into sniffers.
This fixes a regression for the JSON viewer from part 1 as it relies on
sniffing to prettify (and should carve out the exception even if `nosniff`
headers are sent).
No real functional changes otherwise. Just catering to a corner case.
2025-08-18 09:47:21 +08:00
Moonchild e56e5d6cb1 Issue #2258 - Part 1: Support XCTO:nosniff when navigating. 2025-08-18 09:46:58 +08:00
Moonchild 5c0c0c02d9 Issue #2648 - Inherit the content disposition of the multipart response 2024-10-31 21:47:41 +08:00
Moonchild 6fe326c7bb Issue #2648 - Apply CSP to documents sent through multipart/x-mixed-replace 2024-10-31 21:47:28 +08:00
Moonchild 9d320dac80 [network] Block set-cookie from multipart/x-mixed-replace 2024-02-23 10:53:04 +08:00
Moonchild 5dfded811d Issue #80 - reinstated unified building for some large chunks of our code.
This should reduce compile complexity saving time and reducing linker stress.
2022-09-07 10:36:23 +08:00
Brian Smith 13fcc4a046 Issue #1829 - Revert "Issue #1751" 2022-05-04 09:40:24 +08:00
Moonchild ba00d14c12 Issue #1751 - Remove Mac code behind MOZ_WIDGET_TOOLKIT == 'cocoa' 2021-06-24 11:09:47 +08:00
Moonchild 0cd673d720 Issue #1656 - Part 6: Clean up the build files 2020-09-25 22:04:23 +08:00
Moonchild 30df895eb2 Issue #1656 - Part 3: Nuke more vim config lines in the tree.
Another S&R run with some smarter matching.
2020-09-25 22:04:17 +08:00
Moonchild 7d1c08bc99 Issue #80 - De-unify netwerk/streamconv 2020-05-23 06:53:08 +08:00
wolfbeast 0d109e3c9f Issue #1288 - Part 1b: Rewrite nsHTTPCompressConv.
This also includes formatting changes.
2019-11-15 14:23:55 +08:00
wolfbeast 729ee0f18a Issue #1288 - Part 1a: Update brotli to 1.0.7
This also reorganizes the exports in the build system to use `brotli/`
as include directory.
2019-11-15 14:23:54 +08:00
wolfbeast a9b20e6dc7 Remove Query/Ref from the directory listing URI.
Port of Bug 1488061.
2019-02-16 00:18:28 +08:00
roytam1 dcd9973243 import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo 2018-01-19 03:59:58 +08:00