Commit graph

6,740 commits

Author SHA1 Message Date
roytam1
0d1cf674f0 Merge remote-tracking branch 'origin/tracking' into custom 2024-07-10 14:55:58 +08:00
Moonchild
68639a9347 Clean up control flow in WaitableEvent. 2024-07-10 14:55:26 +08:00
Moonchild
9759098329 [network] Add additional cookie setting checks.
Added checks for sub-document navigations from cross-site to same-site in
third-party checks when setting a cookie.
2024-07-10 14:54:46 +08:00
Moonchild
cf9b468d9c No issue - Update SQLite to 3.46.0 2024-07-10 14:54:08 +08:00
Moonchild
7cc4dcb680 Issue #2546 - Part 6: Remove canvas.imagebitmap_extensions.enabled preference. 2024-07-10 14:51:38 +08:00
Moonchild
aaf2dd416c Issue #2546 - Part 5: Remove tests 2024-07-10 14:51:18 +08:00
Moonchild
b1e5955ceb Issue #2546 - Part 4: Remove mappedDataLength and findOptimalFormat 2024-07-10 14:50:59 +08:00
Moonchild
1bc0eda791 Issue #2546 - Part 3: Remove mapDataInto 2024-07-10 14:50:41 +08:00
Moonchild
2b8d75e136 Issue #2546 - Part 2: Remove special FoxEye CreateImageBitmap method. 2024-07-10 14:50:16 +08:00
Moonchild
60fbaa2155 Issue #2546 - Part 1: Remove BufferSource support in CreateImageBitmap. 2024-07-10 14:50:00 +08:00
Moonchild
d9ff917f15 Issue #2542 - Part 9: Remove TODO comment.
From our understanding of the spec, our current implementation is
feature-complete.
2024-07-10 14:49:39 +08:00
Moonchild
18991a87f8 Issue #2542 - Part 8: Enable Sec-Fetch-* headers by default. 2024-07-10 14:49:21 +08:00
Moonchild
fffe6c4996 Issue #2542 - Part 7: Move SecFetch.* to /netwerk where it belongs. 2024-07-10 14:49:06 +08:00
Moonchild
53149ed646 Issue #2542 - Part 6: Add Sec-Fetch-User header for all requests that are the direct result of a system principal request.
This means navigation resulting from interaction with the browser UI
should result in a -user header (address bar navigation, bookmarks, etc.)
2024-07-10 14:48:35 +08:00
Moonchild
0ef8b05101 Issue #2542 - Part 5: Assume browser-initiated requests for unspecified content types to always be user-triggered. 2024-07-10 14:48:15 +08:00
Moonchild
9846090a38 Issue #2542 - Part 4b: Fix pointer mess-up. 2024-07-10 14:47:58 +08:00
Moonchild
65a588ba17 Issue #2542 - Part 4: Use BasePrincipal's IsSameOrigin() in SecFetch. 2024-07-10 14:47:20 +08:00
Moonchild
5ee2871524 Issue #2542 - Part 3: Expand BasePrincipal with an IsSameOrigin check
Manual checking of the origins in SecFetch fails, so we add this
capability to the base principal interface for sake of ease.
We could use ScriptSecurityManager directly but it's more convenient
this way and can be re-used elsewhere in the future.
2024-07-10 14:47:01 +08:00
Moonchild
8ee9e3bc52 Issue #2542 - Part 2b: Fix typo in pref check 2024-07-10 14:46:36 +08:00
Moonchild
8076de8965 Issue #2542 - Part 2: Base implementation of Sec-Fetch-* header code.
Currently following Mozilla putting stuff in /dom for additional porting,
but it's actually the wrong location since it belongs in /netwerk with
the other code that deals with http headers.
2024-07-10 14:45:39 +08:00
Moonchild
1f4b858be2 Issue #2542 - Part 1b: Fix dom.securecontext.whitelist code issues
Some minor bugfixes (wrong condition and string type)
2024-07-10 14:44:56 +08:00
Moonchild
0c71a6ada0 Issue #2542 - Part 1: Factor out Potentially Trustworthy URI checks.
For sake of ease of use, converted to boolean functions that just assume "false"
in case of errors.

Note: Mozilla makes special arrangements for .onion addresses as well but
we explicitly do not adopt that. TOR browser can do that all day if it wants.
2024-07-10 14:44:37 +08:00
roytam1
86e84dda0f [Pale-Moon] add MOZ_APP_UA_NAME and enable general.useragent.change_app_version for better compatibility 2024-07-09 17:07:30 +08:00
roytam1
bf385f38eb UAO: add general.useragent.(change_)app_version 2024-07-09 17:02:32 +08:00
roytam1
f596e3d581 UAO: correct UA string rebuild code, add platform_version pref. 2024-07-09 14:08:03 +08:00
roytam1
f8c34e7c0a network: follow-up rev 914569c0b (rework) 2024-07-09 11:35:15 +08:00
roytam1
b5d57ea4e7 Revert "network: follow-up rev 914569c0b"
This reverts commit a50a1db5a7.
2024-07-09 11:27:32 +08:00
roytam1
a50a1db5a7 network: follow-up rev 914569c0b 2024-07-09 11:10:55 +08:00
roytam1
f5814b5b94 Merge remote-tracking branch 'origin/tracking' into custom 2024-07-09 10:26:17 +08:00
Moonchild
f86664f131 Issue #2045 - Temporarily force hidden elements to be actually hidden.
For the time being, because we don't have `revert` yet, we should force
normally hidden elements to be hidden, so they aren't revealed by sites
using the bad practice of `*{ }` style blanking rules but then using
`revert` to re-hide them.
2024-07-09 10:25:58 +08:00
roytam1
6cc07899cf pref: enabling change_platform_version override setting 2024-07-09 10:21:57 +08:00
roytam1
914569c0b9 network: UserAgent: add Platform Version override 2024-07-09 10:21:29 +08:00
roytam1
688fa00ac4 Merge remote-tracking branch 'origin/tracking' into custom 2024-07-02 22:08:41 +08:00
Moonchild
ef1f142cde Issue #2531 - Adjust rounding in toExponential (and kin) to round up at midpoint.
Resolves #2531
2024-07-02 22:08:14 +08:00
Moonchild
f4b6cee0cc Issue #2543 - adjust toFixed precision range according to spec update.
As pointed out in the ecma-262 spec change discussion, the behavior is
inconsistent for negative numbers because the exponential fallback assumes
all the digits will be displayed. The negative support was motivated just
by consistency, without any particular concrete use cases, and it's not
supported in other browsers, so this patch removes negatives.

Resolves #2543
2024-07-02 22:07:55 +08:00
roytam1
54e20122db Merge remote-tracking branch 'origin/tracking' into custom 2024-07-01 06:59:11 +08:00
Moonchild
5bdec62cb0 Issue #2541 - Deal with empty LineNameList in CSS grid templates.
Resolves #2541
2024-07-01 06:58:50 +08:00
roytam1
f4188fb54e HACK: jsgc: check nullptr before call member function in mayBeOwnedByOtherRuntime() 2024-06-30 13:22:11 +08:00
roytam1
f35b2f4d3d devtools: DOMUtils.getCSSValuesForProperty() and DOMUtils.getSubpropertiesForCSSProperty() can fail, wrap them in try-catch blocks 2024-06-28 22:37:19 +08:00
roytam1
263429ba00 Merge remote-tracking branch 'origin/tracking' into custom 2024-06-28 22:11:23 +08:00
roytam1
7eb7722992 Revert "Revert "PR #2514 - Don't split up happy emoji sequences""
This reverts commit 97db731ae7.
2024-06-28 22:11:17 +08:00
roytam1
b60182aade Revert "Revert part of #2492 and replace it with mozilla one."
This reverts commit ff8673e87e.
2024-06-28 22:11:08 +08:00
roytam1
5134d40d65 Revert "ported from mozilla: Bug 1819025 - Don't consider following join-controls when determining whether a space is collapsible. r=emilio (fad4426b7b)"
This reverts commit 854fac5c4c.
2024-06-28 22:10:57 +08:00
Moonchild
6525b2980c Issue #2537 - Don't assume username fields appear before password fields in forms. 2024-06-28 22:06:02 +08:00
Andy
44f81b46b6 Issue #2538 - Part 3: Bring ZWJ Awareness to ClusterReverseIterator
Additional patch to resolve a bug exposed while working on the Cluster issue.
2024-06-28 22:05:40 +08:00
Andy
68bcd4e61e Issue #2538 - Part 2: Add IsEmojiClusterExtender
Check specifically for Emoji-specific clusters only in Emoji-specific contexts.
2024-06-28 22:05:20 +08:00
Andy
a1b6142e18 Issue #2538 - Part 1: Undo IsClusterExtender Change
This partially reverts commit 49b7816286498e9ad5b48864847f0a2adabff318.
So much for getting rid of the stupid constants...
2024-06-28 22:04:50 +08:00
roytam1
c416859636 Merge remote-tracking branch 'origin/tracking' into custom 2024-06-24 23:12:00 +08:00
Moonchild
af227c4574 Issue #2534 - Part 2: Update tests 2024-06-24 23:11:39 +08:00
Moonchild
fb16b1b4ae Issue #2534 - Part 1: window.postMessage should provide a trusted MessageEvent 2024-06-24 23:11:25 +08:00