Commit graph

6,412 commits

Author SHA1 Message Date
Moonchild
1ffa7569e9 Issue #2714 - Enable the Visual Viewport API by default.
Flip the pref. We want this on by default for web compat.
Users can disable it if they really want to, but it doesn't expose
anything of note to web content anyway that can't already be determined.
2025-08-04 21:32:58 +08:00
Moonchild
a036cfeb69 Issue #2714 - Implement the Visual Viewport API
This DOM/Web API is entirely irrelevant for desktop use.
We give back the width/height of the root scrollframe of content and
for scale we pass forward our dpp resolution (usually 1.0).
Since we have no "no touch" zones in our content on desktop,. the rest
(origin and offset) is hard-coded to (0,0).
2025-08-04 21:32:39 +08:00
Moonchild
ace2c1c1ee [DOM] Simplify <object> scheme check code and fix plugin handling.
Trying to do a positive check on nested URIs apparently doesn't work,
but the handling could be simplified to just check for non-null mURI
instead - this also fixes plugin loading (which broke with the previous
check).
2025-07-31 22:08:07 +08:00
Moonchild
838be26145 [DOM] Fix crash in <object> scheme checking code.
If a website would nor supply a URI for object loading code, the browser
would crash on a null deref.
This reintroduces the nestedURI check to make sure we have a valid URI.
2025-07-31 07:40:43 +08:00
Moonchild
cea125a01d Issue #2489 - Follow-up: Add color-mix() manual test. 2025-07-31 07:40:09 +08:00
MeladJM
429e05c8a1 Issue #2790 - Cleanup: Correct whitespaces 2025-07-29 10:44:03 +08:00
MeladJM
61f92f89ea Issue #2790 - Part 7: Setting of contrasting color and fixing of last commit's issues 2025-07-29 10:43:26 +08:00
MeladJM
61ad3b8d6e Issue #2790 - Part 6: Highlight color change and remove important 2025-07-29 10:42:29 +08:00
MeladJM
70cbf0dfd3 Issue #2790 - Cleanup: Remove whitespaces 2025-07-29 10:41:22 +08:00
MeladJM
459ed6ea85 Issue #2790 - Cleanup: Remove debugging lines 2025-07-29 10:41:05 +08:00
MeladJM
156c755085 Issue #2790 - Part 5: Persistent highlight despite blur click 2025-07-29 10:36:38 +08:00
MeladJM
bf8cfcc980 Issue #2790 - Part 4: Working non persistent autofill highlight 2025-07-29 10:35:07 +08:00
MeladJM
4cdfb9e16b Issue #2790 - Part 3: Address BZ bug 1849122 and resolve build issues 2025-07-29 10:14:48 +08:00
MeladJM
d99eab0d9d Issue #2790 - Part 2: Address BZ bugs: 1355438 and 1341230 2025-07-29 10:14:23 +08:00
MeladJM
13d1054046 Issue #2790 - Part 1: Add: event state, pseudo-class mapping, SetAutofilled methods 2025-07-29 10:14:06 +08:00
erixreyes
2855cd6ded Issue #2489: Produce more accurate computations 2025-07-29 10:13:49 +08:00
erixreyes
052b5d1ffa Issue #2489: Disallow percentage overflow and underflow 2025-07-29 10:13:28 +08:00
erixreyes
5fe574de22 Issue #2489: Allow SRGB with alpha mixing 2025-07-29 10:13:12 +08:00
erixreyes
22be9f7fc6 Issue #2489: Allow HSL with alpha mixing 2025-07-29 10:12:56 +08:00
erixreyes
01b0b8251d Issue #2489: Allow color-mix() to differentiate color spaces 2025-07-29 10:12:38 +08:00
erixreyes
cb2547efa3 Issue #2489: Adding RGB to HSL function 2025-07-29 10:12:20 +08:00
erixreyes
ff5f3b2b2d Issue #2489: Improve color-mix() computation algorithm 2025-07-29 10:12:05 +08:00
erixreyes
eb7eacc565 Issue #2489: Remove unnecessary initializations 2025-07-29 10:11:49 +08:00
erixreyes
a3cb799126 Issue #2489: Fix CSS color-mix() percentage parsing 2025-07-29 10:11:34 +08:00
erixreyes
7899850a19 Issue #2489: color-mix function parsing 2025-07-29 10:11:13 +08:00
erixreyes
cb60df2169 Issue #2489: Create ColorMixValue structure 2025-07-29 10:10:55 +08:00
erixreyes
99d7fb8e95 Issue #2489: Update enum class syntax 2025-07-29 10:10:37 +08:00
erixreyes
6b938c48a5 Issue #2489: Include color-mix to avoid filtering 2025-07-29 10:10:16 +08:00
erixreyes
58d7206259 Issue #2489: Add color-mix computation support 2025-07-29 10:09:51 +08:00
erixreyes
b42cca5fa5 Issue #2489: Add color-mix serialization support 2025-07-29 10:09:35 +08:00
erixreyes
7800eb0126 Issue #2489: ColorMixValue support and structure 2025-07-29 10:09:01 +08:00
erixreyes
055a685c2e Issue #2489: Add CSS color-mix keyword support 2025-07-29 10:08:47 +08:00
Moonchild
2c39bb7901 No issue - Regenerate devtools CSS database
To pick up new public use of clip, addition of overflow-inline and
addition of overflow-block.
2025-07-29 10:08:32 +08:00
Francis Dominic Fajardo
37230e7b21 Issue #2835 - Part 2: Implement processing of import rules based on order of appearance 2025-07-29 10:08:01 +08:00
Francis Dominic Fajardo
be3d8491c7 Issue #2835 - Part 1: Expose nsCSSRuleProcessor::CascadeSheet 2025-07-29 10:07:47 +08:00
Francis Dominic Fajardo
318031c74b Issue #2828 - Part 13: Exclude strong layers-related code from release builds
I'll be leaving this in here for future use. CSSWG hasn't defined how this will be exposed to CSSOM yet. The parser bits are also not yet implemented.
2025-07-25 20:53:31 +08:00
Francis Dominic Fajardo
e3476d33ed Issue #2828 - Part 12: Implement cascade layer SizeOfIncludingThis 2025-07-25 20:53:16 +08:00
Francis Dominic Fajardo
cbb019a862 Issue #2828 - Part 11: Detach weighted rule data from cascade layer 2025-07-25 20:52:56 +08:00
Francis Dominic Fajardo
a922ec0823 Issue #2828 – Part 10: Clean up cascade layer constructor
This also renames mIsWeak to mIsStrong. Cascade layers are weak by default and there's no point in always setting this to true.
2025-07-25 20:52:35 +08:00
Francis Dominic Fajardo
1655a5a4a9 Issue #2828 - Part 9: Rename CascadeEnumData to CascadeLayer 2025-07-25 20:52:08 +08:00
Francis Dominic Fajardo
3605630f4e Issue #2828 - Part 8: Extract RuleProcessorGroup (formerly ResolvedRuleCascades) into separate file
The struct no longer holds rule cascades since part 5 anyway, and extracting it to a separate file allows it to be reused in the future.
2025-07-25 20:51:45 +08:00
Francis Dominic Fajardo
ec57be653a Issue #2828 - Part 7: Walk child rule processors separately and ensure inverted cascade layer order is enforced for important rules
Excluding @layers declared in scoped styles because those aren't specced and are in an entirely separate cascade origin.
2025-07-25 20:51:30 +08:00
Francis Dominic Fajardo
d3b305b819 Issue #2828 - Part 6: Assert rules were added to the rule cascade data 2025-07-25 20:51:16 +08:00
Francis Dominic Fajardo
e05d4d8306 Issue #2828 - Part 5: Implement child rule processors 2025-07-25 20:50:57 +08:00
Francis Dominic Fajardo
aab9cdf9bd Issue #2828 - Part 4: Move cache key storage to ResolvedRuleCascades 2025-07-25 20:47:31 +08:00
Francis Dominic Fajardo
03f29e75ec Issue #2828 - Part 3: Refactor selector matching and rule cascade data into separate files/classes 2025-07-25 20:47:06 +08:00
Francis Dominic Fajardo
7b51aa7ca1 Issue #2828 - Part 2: Collect and hold rule cascade data per cascade layer 2025-07-25 20:14:14 +08:00
Francis Dominic Fajardo
53e6317bfb Issue #2828 - Part 1: Build and store the array of layer name tokens in the layer at-rules 2025-07-25 20:13:14 +08:00
Moonchild
f902d2ad0e [DOM] Make object loading use an explicit scheme whitelist. 2025-07-25 07:33:16 +08:00
Moonchild
cdc8127cd1 [network] Stop accepting nameless cookies. 2025-07-25 07:32:29 +08:00