Commit graph

4,400 commits

Author SHA1 Message Date
roytam1
1bdcd46977 import changes from tenfourfox:
- #622: update brotli to 1.0.9, woff2 to tip (7c24b77e7)
- #622: actually add new brotli files (fc50954e6)
2020-09-19 07:32:30 +08:00
roytam1
64ccce7c22 partly import changes from tenfourfox:
- #622: M1660537 M1641487(modified) M1645492 (291688840)
2020-09-19 07:15:01 +08:00
roytam1
5f548d297e fix error flow in preferences 2020-09-19 07:06:14 +08:00
roytam1
06a2891ef7 import certdata changes from NSS upstream:
- Bug 1651211 - Remove EE Certification Centre Root CA root cert. r=KathleenWilson,jcj
- Bug 1653092 - Disable server trust bit for OISTE WISeKey Global Root GA CA root cert. r=KathleenWilson,jcj
- Bug 1656077 - Remove Taiwan Government Root Certification Authority root cert. r=KathleenWilson,jcj
- Bug 1663049 - Add SecureTrust's Trustwave Global root certificates to NSS. r=KathleenWilson,jcj
- Bug 1663049 - September 2020 batch of root changes, NSS_BUILTINS_LIBRARY_VERSION 2.44. r=jcj
2020-09-19 07:05:30 +08:00
roytam1
1455a4fcbd import change from tenfourfox:
- fix overzealous assertion (M1531906) (af9a8236e)
2020-09-19 07:05:02 +08:00
roytam1
48b96210d1 partly import change from tenfourfox:
- #618: EV now from ESR78, update TLDs, pins, HSTS (cb0f39c2f)
2020-09-19 07:04:44 +08:00
roytam1
d8c338b6d9 Merge remote-tracking branch 'origin/master' into custom 2020-09-18 20:54:18 +08:00
athenian200
fb8d9b8c78 Issue #1647 - Part 2: Implement VARIANT_OPACITY to correctly serialize.
Even though percentages are already treated as floats internally by the style system for computation purposes, you have to go out of your way to stop them from being read back out as percentages. What I do here amounts to storing the percentage token in the "wrong" container, the one normally used for floats. This allows a value that was read in as a percentage to be read back out as something else, which is normally prevented by the design of the style system.
2020-09-18 20:53:45 +08:00
athenian200
b530d56c47 Issue #1647 - Part 1: Implement percentage for CSS opacity keywords
This preliminary step allows percentages to be computed and display correctly,
but unfortunately it fails a test after changing VARIANT_HN to VARIANT_HPN because that allows values to be serialized as percentages. However, not doing this means percentages are rejected as valid values for the user to input. The way the style system is setup makes it hard to change this for opacity without changing it for everything else, especially since some code-saving speed hacks in Bug 636029 and Bug 441367 that make a lot of assumptions about this stuff very rigid.
2020-09-18 20:53:43 +08:00
Moonchild
f5f9c8c597 Issue #1224 - Remove constant expressions from /dom
This excludes DOMProxy handlers in dom bindings because that's intertwined with
codegen and js that needs to be handled together.
2020-09-18 20:53:42 +08:00
Moonchild
57d143dc6e Issue #1643 - Part 4: Hook up all the plumbing. 2020-09-18 20:53:16 +08:00
Moonchild
96a75aa648 Issue #1643 - Part 3: Implement ResizeObserverController 2020-09-18 20:53:15 +08:00
Moonchild
abb3630983 Issue #1643 - Part 2: Implement ResizeObserver API
Implements ResizeObserver, ResizeObserverEntry and ResizeObservation
2020-09-18 20:53:14 +08:00
Moonchild
d883c3ef98 Issue #1643 - Part 1: Add GetNodeDepth() to nsContentUtils. 2020-09-18 20:53:12 +08:00
roytam1
8fd5fd8690 Merge remote-tracking branch 'origin/master' into custom 2020-09-16 21:19:55 +08:00
adeshkp
7704d9e522 [Pale-Moon] [minor] spelling correction in a code comment 2020-09-16 21:17:46 +08:00
Gaming4JC
48006dc075 Issue #618 - Clear the module map - Debug Followup
An assertion was added to dom/script/ScriptLoader.cpp but fails to compile on debug builds due it not being included in the namespace.

Ref: BZ 1529203
2020-09-16 21:11:08 +08:00
athenian200
aa7b7fe713 Issue #1629 - Part 5: Remove pointless local variables.
Since the local variable is always initialized to false, we don't actually need to declare it and can just pass "false" directly as a parameter to the PrepareSheet function's bool. I was worried about code readability at first, but some well-placed comments took care of that.
2020-09-16 21:11:06 +08:00
athenian200
f04339dd5a Issue #1629 - Part 4: Ensure isExplicitlyEnabled is false upon sheet creation.
This clarifies the assumptions the code is making and the order in which the variables pass through the loading process. The new variable is set after the sheet is created and prepared, and is assumed to be false in the beginning.
2020-09-16 21:11:05 +08:00
adeshkp
cbd06086ea Fix usage of a macro in a cocoa widget (#1649)
* Issue #457 - Fix usage of a macro in a cocoa widget
2020-09-16 21:11:03 +08:00
Moonchild
dc12585a82 Issue #1650 - Add null check.
There are situations where nsCSSClipPathinstance->CreateClipPath(dt)
returns null. We need to check for this before trying to use its
functions. If there is no clip path, then always return "no hit".
2020-09-16 21:11:02 +08:00
adeshkp
f7b02cecab Issue #1280 - Remove hostname parameter to trust domain.
Host name was purely being used for HPKP and since HPKP is killed,
this can also go. Currently it doesn't do anything other than
generating build warnings.
2020-09-16 21:11:01 +08:00
roytam1
5536a50a21 Merge remote-tracking branch 'origin/master' into custom 2020-09-12 07:25:34 +08:00
Moonchild
08809c7f12 [Pale-Moon] Issue #1717 - Add distinct mixed-mode indicator and logic for display. 2020-09-12 07:24:29 +08:00
Moonchild
347bfc5741 [Pale-Moon] Issue MoonchildProductions/UXP#1644 - Remove plugin check leftovers (front-end)
Includes appropriate platform pointer update.
2020-09-12 07:24:01 +08:00
roytam1
3b48e4818a Merge remote-tracking branch 'origin/master' into custom 2020-09-10 21:08:44 +08:00
Moonchild
ef11a4d7e8 Issue #618 - Clear the module map when changing a Document's global and add
release build assertions for mismatching compartments.
2020-09-10 21:07:51 +08:00
Moonchild
7316d91ba2 Issue #618 - Make ES6 modules work for resource: URIs 2020-09-10 21:07:51 +08:00
Moonchild
1e87731ce1 Issue #618 - Implement preloading of module scripts.
This hooks up module scripts to the existing preload mechanism.
2020-09-10 21:07:50 +08:00
Moonchild
065ef47e65 Issue #1639 - Implement object.fromEntries()
Adds a self-hosted implementation of this map->object conversion.
This resolves #1639.
2020-09-10 21:06:50 +08:00
Moonchild
bc02e9541f Issue #1644 - Remove plugin checking code leftovers 2020-09-10 21:06:49 +08:00
Roy Tam
8015bb7004 update NSS as-of pm27 rev 7606140ee 2020-09-04 22:55:34 +08:00
Roy Tam
eeb44de4a1 Merge remote-tracking branch 'origin/master' into custom 2020-09-04 22:34:20 +08:00
Moonchild
00eb2c7983 Clobber for CSS flow-root implementation 2020-09-04 22:32:55 +08:00
athenian200
9532970df5 Issue #1641 - Implement CSS flow-root keyword
This is just a clean port of 1322191 and follow-up 1325970. It really seems to add create a new way to access existing code relating to block formatting and floating elements rather than implementing new functionality, and it is mercifully straightforwards.
2020-09-04 22:31:00 +08:00
Moonchild
0af26afc22 Clobber for NSS update 2020-09-04 22:30:59 +08:00
Moonchild
38470e4fe9 [NSS] Version and build bump 2020-09-04 22:30:57 +08:00
J.C. Jones
0e23c7cc48 [NSS] Prevent slotLock race in NSC_GetTokenInfo
Basically, NSC_GetTokenInfo doesn't lock slot->slotLock before accessing slot
after obtaining it, even though slotLock is defined as its lock.
2020-09-04 22:30:55 +08:00
Roy Tam
71c968d1fd import change from mozilla upstream: Bug 1293958 - Add OAuth2.0 for Yahoo and AOL. r=mkmelin a=jorgk 2020-08-31 07:13:14 +08:00
Roy Tam
312cd43c03 Merge remote-tracking branch 'origin/master' into custom 2020-08-29 08:18:57 +08:00
Matt A. Tobin
0442dd4ee5 [Pale-Moon] Add a configure option for Phoenix Extensions Dual-GUID System and set default off in confvars 2020-08-29 08:18:12 +08:00
Moonchild
589e9b77ae Issue #1587 followup - Improve resilience of AbortSignals. 2020-08-29 08:11:20 +08:00
Moonchild
2e6ec48b81 [misc/mar] Don't use a signed type for a length parameter. 2020-08-29 08:11:17 +08:00
Kris Maglione
f0f7b56d77 [DOM] Only construct JS-implemented objects if inner window is current. 2020-08-29 08:11:15 +08:00
Moonchild
209eb0a245 [media] Only include source error details in debugging scenarios.
Unless a user is debugging media errors, this detail is unnecessary to report
and could include sensitive data which could be abused by third-party
requesters. This aligns it with the standard success/error paradigms in normal
browsing situations.
2020-08-29 08:11:13 +08:00
Gaming4JC
527d5c6252 Issue #618 - Regenerate the HTML Parser code for nomodule changes
Ref: BZ 1446082
2020-08-29 08:10:47 +08:00
Gaming4JC
6c8f24a735 Issue #618 - Don't preload nomodule scripts when modules are enabled
Ref: BZ 1382020
2020-08-29 08:10:45 +08:00
Moonchild
3781c4a6dd Issue #618 - (async) Implement async attribute for inline module scripts.
This commit does several things:
- Moves the pref check from ScriptLoader to ns[I]Document so it can be called on
the document.
- Changes the atrribute freezing function to a better name that takes the
document as a parameter.
- Sets the proper async/defer attributes on HTML script elements based on
keywords and whether they are module scripts or not.
2020-08-29 08:10:42 +08:00
Moonchild
294721687c Issue #618 - (async) Keep track of script modes in a single mode state.
This simplifies handling of combinations of async/defer by assigning one and
only one state to scripts.
If async then always async > if defer or module then defer > otherwise blocking.
2020-08-29 08:10:40 +08:00
Moonchild
3fa4aabfad Issue #618 - (async, preload) Correctly pass info about async/defer to parser.
This makes sure we don't block body-referred sub-resources by head-referenced
defer and async scripts. This is important for all script loads, not just
modules, but is added here because it was run into while implementing modules.
2020-08-29 08:10:37 +08:00