Commit graph

6,712 commits

Author SHA1 Message Date
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
Moonchild
22f745761b Issue #2536 - Re-implement plugin enumeration shuffle.
Resolves #2536
2024-06-24 23:11:06 +08:00
roytam1
a2f81bc791 Merge remote-tracking branch 'origin/tracking' into custom 2024-06-17 16:15:30 +08:00
Moonchild
6a200d5284 No Issue - Add navigator.webdriver attribute.
This patch adds an enumerable, configurable, readonly attribute "webdriver" to
the Navigator object. The attribute is always false because we do not support
WebDriver or scripted automation.

The navigator.webdriver attribute is meant as an indication to web authors that
a document is visited by WebDriver. It is important to stress that it is not
meant as a way to detect that a website is being visited by a browser automation
tool or bot, but as a tool for web documents to take alternate code paths.

On the off-chance exposing navigator.webdriver turns out to be catastrophic,
we put it behind a new preference dom.webdriver.enabled that controls its
exposure.
2024-06-17 16:14:48 +08:00
Moonchild
1db268ef50 Issue #2532 - Align dialog submission triggered by form.submit() with the spec.
Submission in click handler of submit button should not be deferred
per https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#submit-dialog

See Bug 1719872
2024-06-17 16:12:14 +08:00
Moonchild
b6d077bbbb Issue #2532 - Prevent unwanted text selection when backdrop is clicked. 2024-06-17 16:12:00 +08:00
Moonchild
368ee51d86 Issue #2532 - Don't do PreventDefault for escape key if <select> dropdown is not shown
We always use PreventDefault for <select> element, which is problematic if modal
dialog is on as it prevents cancelling the dialog. We fix it by not blocking the
default action if <select> is not shown.

See Bug 1649278
2024-06-17 16:11:45 +08:00
Moonchild
f50948c82a Issue #2532 - Fix a null pointer crash while doing dialog form submission
See Bug 1652699
2024-06-17 16:11:29 +08:00
Moonchild
f598fe63cd Issue #2532 - Default pref check to true 2024-06-17 16:11:07 +08:00
Moonchild
6ee3f46900 Issue #2532 - Implement form[method=dialog]
See bug 1557303
2024-06-17 16:10:50 +08:00
Richard-Rogalski
b73f500c04 PR #2530 - Fix altivec code, fix building for PPC
Altivec code was previously uncompilable, and the altivec accelerations
also could not be disabled with a build flag or env variable, leading
to pale moon not being buildable on any altivec supported CPU ( all
PPC CPUs ever almost ). Why? I don't know, 'inline' in C is cursed
and making it static makes it significantly less so.

Closes: https://forum.palemoon.org/viewtopic.php?f=5&t=31108&p=252462#p252462
Signed-off-by: Richard Rogalski <rrogalski@firemail.cc>
2024-06-17 16:10:19 +08:00
roytam1
d835b252d7 Merge remote-tracking branch 'origin/tracking' into custom 2024-06-13 11:32:08 +08:00
Daniel Holbert
0e05cb9630 [layout] Initialize PerSpanData members mBaseline and mReflowInput.
We null-initialize all of the other pointer members in NewPerSpanData; we should
do the same for these ones, for consistency & robustness.

(In practice, the callers end up initializing these members before reading them
anyway, so it's been benign that we weren't initializing them. But better for
safety & futureproofing to have them reliably initialized.)
2024-06-13 11:31:46 +08:00
Moonchild
9c8bd37fe5 [uri] Implement additional filename checks. 2024-06-13 11:31:03 +08:00
Moonchild
40c9102d6d [js gc] Suppress GC during JSObject::swap
We already suppressed GC for part of this, but we may sweep before the pre-write
barrier is established.
The simplest and safest thing is to suppress GC for the whole method.
2024-06-13 11:30:25 +08:00
Moonchild
b4caa69a9c [toolkit] Close autocomplete popup when window is resized. 2024-06-13 11:29:32 +08:00
Moonchild
a2417d573b [DOM] Clone video info properly. 2024-06-13 11:28:58 +08:00
roytam1
0b1483068f Merge remote-tracking branch 'origin/tracking' into custom 2024-06-12 15:41:21 +08:00
Moonchild
a09accc204 [uri] Fix issues with external protocol handlers.
Remove early return in nsExternalProtocolHandler::NewChannel when handler doesn't exist.
Fix devtools expectation that newChannel throws for unsupported external handlers
2024-06-12 15:41:01 +08:00
roytam1
6d9126c486 Merge remote-tracking branch 'origin/tracking' into custom 2024-06-12 15:16:10 +08:00
Moonchild
bcdf7dc845 [network] Avoid accessing raw pointers in nsTransportEventSinkProxy. 2024-06-12 15:12:37 +08:00
Moonchild
bfb171c783 [network] Perform a case-insensitive match on special cookie prefixes. 2024-06-12 15:11:50 +08:00
roytam1
36bc963804 layout: fix corrupted unicode in comments, no code change 2024-06-11 10:43:29 +08:00
roytam1
a30e0e7448 Merge remote-tracking branch 'origin/tracking' into custom 2024-06-11 10:15:00 +08:00
FranklinDM
2ba31f4e97 Issue #2522 - Part 2: Implement support for logical viewport units 2024-06-11 10:14:40 +08:00
FranklinDM
5c06335c5b Issue #2522 - Part 1: Alias small, large, and dynamic viewport units to base viewport 2024-06-11 10:14:27 +08:00
Moonchild
359a4a2069 Issue #2524 - Implement smart granularity for canvas poisoning.
User-configurable time interval between 1s and 8h. Default 5 minutes.
Resolves #2524
2024-06-11 10:14:09 +08:00
roytam1
b794ec0afd nss: update nssckbi to 2.68 2024-06-09 07:15:57 +08:00
roytam1
854fac5c4c ported from mozilla: Bug 1819025 - Don't consider following join-controls when determining whether a space is collapsible. r=emilio (fad4426b7b) 2024-06-08 12:10:00 +08:00