Commit Graph

165 Commits

Author SHA1 Message Date
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 8c395520d9 Issue #1656 - Part 1: Nuke most vim config lines in the tree.
Since these are just interpreted comments, there's 0 impact on actual code.
This removes all lines that match /* vim: set(.*)tw=80: */ with S&R -- there are
a few others scattered around which will be removed manually in a second part.
2020-09-25 22:04:12 +08:00
Moonchild abb3630983 Issue #1643 - Part 2: Implement ResizeObserver API
Implements ResizeObserver, ResizeObserverEntry and ResizeObservation
2020-09-18 20:53:14 +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 2e6ec48b81 [misc/mar] Don't use a signed type for a length parameter. 2020-08-29 08:11:17 +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
athenian200 42d14af9a3 Issue #1629 - Part 3: Implement behind preference.
This is not very "clean," and is mostly done in the same sloppy way as Emilio did it because that's basically the only way you can do it. Note well that this does NOT actually turn off everything I've done in a clean fashion like ifdefs would. For instance, the Explicitly Enabled flag is still present, but is now always false because the only condition that can set it true is behind the pref and therefore inert when this pref is off. Also, because the arguments of SetDisabled have changed, my modifications to SetMozDisabled must be present regardless of whether the pref is on or off. What I have done is turn off the actual reflection of the disabled attribute in Disabled and SetDisabled, as well as in AfterSetAttr.

However, turning the pref off seems to restore more or less our old behavior, though there may be subtle differences unlike with an ifdef since this is, unfortunately, not an exact science and I can only turn off changes that happen within individual functions and not changes in how functions interact with each other.
2020-08-19 16:21:22 +08:00
Andy 9f48a59946 Issue #1620 - Enable Intrinsic Ratio by Default
A simpler name feels so much cleaner.
2020-08-14 08:59:37 +08:00
Andy be1f68f39e Issue #1620 - Use Intrinsic Aspect Ratio for Images
https://bugzilla.mozilla.org/show_bug.cgi?id=1547231
https://bugzilla.mozilla.org/show_bug.cgi?id=1559094
https://bugzilla.mozilla.org/show_bug.cgi?id=1633434
https://bugzilla.mozilla.org/show_bug.cgi?id=1565690
https://bugzilla.mozilla.org/show_bug.cgi?id=1602047

Make use of Aspect Ratios in Image frames before Images are loaded.
- Check for width and height HTML properties and create a ratio with them.
- Overwrite HTML size values with actual image dimensions on load.
- Collapse any frames with srcless images.

Comments:
dom/html/nsGenericHTMLElement.cpp:1483
layout/generic/nsImageFrame.cpp:289
2020-08-14 08:59:33 +08:00
Moonchild 26990a1d74 Pref and disable getRootNode()
This is apparently used for fallback selection and if available it is "assumed"
Shadow DOM is also available, while this is a utility function.

Webcompat is a nightmare sometimes.
2020-08-08 06:56:50 +08:00
Moonchild b33e80b186 Issue #1391 - Remove the DOM battery API 2020-07-31 08:07:41 +08:00
Moonchild b36f73fc57 [css] Enable various arbitrarily-disabled CSS features in the platform.
These should all be spec-compliant and were (for release-trickling of features)
arbitrarily disabled by Mozilla at our fork point. There's no real reason to
keep them disabled since they are used in the wild.
2020-07-25 06:25:48 +08:00
Matt A. Tobin ed0edf6a22 Issue #1611 - Enable WASM by default but only enable jit when 64bit 2020-07-25 06:25:44 +08:00
Moonchild 1b3eeca9eb Issue #1587 - Part 10: Expose controlling pref and enable by default 2020-06-12 22:12:39 +08:00
Moonchild 7900742344 Issue #1585 - Replace node.rootNode with node.getRootNode()
This removes the (default disabled) node.rootNode readonly attribute
and replaces it with a node.getRootNode() function per WhatWG
spec discussion.
Based on work by John Dai <jdai@mozilla.com>
2020-06-10 21:00:36 +08:00
Lootyhoof 564f1026d5 Issue MoonchildProductions/UXP#1578 - Add global menubar support for GTK 2020-06-10 21:00:30 +08:00
Bas Schouten 27ea0aaf55 Prevent the existance of dangling pointers upon failure of FindDataStart. 2020-05-09 06:56:26 +08:00
Moonchild d62f0a0dd2 Issue #1517 - Remove dom.event.highrestimestamp.enabled pref
This resolves #1517
2020-05-09 06:55:11 +08:00
Matt A. Tobin 04a69cbc34 Issue #1375 - Merge CustomElements pref with Webcomponents Pref 2020-04-18 07:07:23 +08:00
wolfbeast 78a9717bc3 Issue #1517 - Enable high-resolution DOM timestamps on trunk
At the very least we should enable these short term, with the potential
removal of it pending.
2020-04-18 07:02:07 +08:00
wolfbeast ff8c58e8db Issue #1498 - Part 6: Remove STS preloadlist pref. 2020-04-03 09:22:00 +08:00
wolfbeast 2996c783d8 Revert #1091 Remove unboxed object code phase 1 + extras.
This should be the last code backout for this. merging this branch
should get us back to the way we were (+ additional code changes for
later changes) as fasr as the unused unboxed code is concerned.
2020-02-27 07:34:57 +08:00
wolfbeast cda9951c24 [CSS] Add stub for font-variation-settings
This stub is added because websites insist on considering this
very hardware-dependent and O.S.-variable low-level font-control
as a "critical feature" which it isn't as there is 0 guarantee
that font variation settings are supported or honored by any
operating system used by the client.

On top this is a WD status feature that sites shouldn't be using, and
the feature itself is strongly discouraged for use in favor of standard
CSS font manipulation keywords like `font-weight`.
2020-02-13 07:17:37 +08:00
Matt A. Tobin 146d0aa2d2 Issue #1395 - Remove FlyWeb Service 2020-02-08 07:11:37 +08:00
wolfbeast a085fa5430 Issue #1360 - Part 1: Simplify layers acceleration prefs.
This gets rid of platform-dependent hard-coded defaults, but keeps
build-time blocking if there is no GL provider (in which case layers
acceleration almost certainly won't work because it needs a GL
compositor and would likely crash without)

New prefs are
- layers.acceleration.enabled to enable HWA
- layers.acceleration.force to force it enabled (requires .enabled to be
  set as well)

This is the platform part of this issue. The rest will be front-end work
(Preference UI integration and pref migration)
2020-01-31 07:42:02 +08:00
Gaming4JC a2e1955dc6 Bug 1271549 - Remove details and summary preference.
Tag UXP Issue #1344
2020-01-31 07:35:02 +08:00
Gaming4JC 8d600c51ed Issue #1366 - Completely remove showModalDialog 2020-01-24 09:28:42 +08:00
Matt A. Tobin 2aca38b372 Issue #1359 - Pointlessly rename greprefs.. again. 2020-01-24 09:28:10 +08:00
wolfbeast 0466317716 Issue #1332 - Enable seeking to next frame by default.
The indicated BZ bug was resolved in Gecko 50, and could have already
been enabled before (since it returns a promise as-required).
With the rest of promise-based media implemented it makes no sense to
keep this disabled on production.
2020-01-17 09:18:57 +08:00
wolfbeast 50fe8f9d20 Issue #1319 - Set some obvious prefs for production builds.
This sets some defaults for production builds that should be
self-explanatory.
2020-01-17 09:18:31 +08:00
wolfbeast 4860ee4709 Issue #1353 - Disable remote jar: URIs by default.
Considering the one exception this was still enabled for on all versions
of Firefox since 45 until our fork point is no longer applicable.
This resolves #1353
2020-01-17 09:17:20 +08:00
wolfbeast 84818be343 No issue - Remove unused network.http.bypass-cachelock-threshold pref. 2020-01-17 09:17:18 +08:00
wolfbeast 540e9c1500 No issue - Don't define gamepad prefs when gamepad support isn't built.
This also sets sane defaults when present. See also #1319.
2020-01-17 09:17:15 +08:00
Gaming4JC a77fa3ec13 Bug 1322938 - Put <dialog> element behind preference.
Tag #1343
2020-01-09 21:28:00 +08:00
wolfbeast e26dc7595a Issue #1313 - Bump Firefox compatMode version to 68.9
This resolves #1313.
2019-12-06 07:30:57 +08:00
wolfbeast 23e0d82436 Issue #1291 - Part 4: Update patch files 2019-11-16 06:17:50 +08:00
wolfbeast ddb1aaaee3 Issue #1291 - Part 3: Update fdlibm to Sept 2019 version 2019-11-16 06:17:48 +08:00
wolfbeast b6c0bdd7da Issue #1291 - Part 2: Stop using the lib's sqrt() function
Use <cmath>'s functions over fdlibm's for performance reasons.
No significant precision loss when doing this.
2019-11-16 06:17:47 +08:00
wolfbeast ddb27ac3e9 Issue #1291 - Part 1: Ensure exp(1) returns e exactly (use a const) 2019-11-16 06:17:45 +08:00
wolfbeast a9493635c6 Issue #80 - Stop building embedded xz lib unified 2019-11-16 06:17:43 +08:00
wolfbeast cd7696699c Issue #80 - Stop building woff2 lib unified 2019-11-16 06:17:42 +08:00
wolfbeast 792f16c5bf Issue #80 - Stop building brotli lib unified 2019-11-16 06:17:40 +08:00
wolfbeast 66b4db7c31 Issue #1288 - Part 3: Update woff2 component to 1.0.2 2019-11-15 14:23:58 +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 03da6250e7 Issue #618 - Flip on module type scripting. 2019-11-11 22:04:45 +08:00
janekptacijarabaci 408d61b4f0 Bug 1330657 - Enable <script type="module"> behind a pref 2019-11-11 21:54:58 +08:00
wolfbeast fe92ae641a Issue #1275 - Add pref to disable warning prompts for SuperfluousAuth
and AutomaticAuth, and default to not prompting.

This resolves #1275.
2019-11-08 09:38:17 +08:00
athenian200 45bf760ac5 MoonchildProductions#1251 - Part 27: Fix ifdef style.
This should do it for all the commits to files I changed, but while I'm in here I could probably go ahead and turn ALL the singular if defined statements into ifdef statements by using grep/find on the tree. On the other hand, perhaps we should do that as a separate issue so that this doesn't become a case of scope creep.
2019-11-04 11:54:07 +08:00
athenian200 63e0d2e326 MoonchildProductions#1251 - Part 15: fdlibm should provide definition for u_int32_t and u_int64_t.
https://bugzilla.mozilla.org/show_bug.cgi?id=1350355

u_int32_t is not an stdint.h type. Windows already requires this, Solaris needs it too. If someone has a nit with this approach, the alternatives include:

1. Just replacing every instance of u_int32_t with uint32_t.

2. Including <sys/types.h> for Solaris only, which does define this.

3. Changing the original ifdef to be WIN32 || XP_SOLARIS

But it really doesn't matter how you solve this problem, all of the approaches are functionally equivalent, and this one has been used in Firefox since version 55. As far as I can tell, all it does is apply a fix that was being done for Windows already to any platform that needs it.
2019-11-04 11:52:36 +08:00