Commit graph

4,198 commits

Author SHA1 Message Date
Moonchild
a77ab3da7f Issue #1656 - Nuke the remaining vim lines in UXP
Closes #1656
2020-10-30 09:09:20 +08:00
Moonchild
975b2cbf74 [layout] Re-order rowgroups if reflowing.
This logic was missing for tfoot. See existing code in second hunk.
2020-10-30 09:08:17 +08:00
Moonchild
cc0dab1b67 [layout] Avoid negative availSize.BSizes in paginated table reflow. 2020-10-30 09:08:15 +08:00
Moonchild
c9b506acfd Bump platform version for added features. 2020-10-30 09:08:14 +08:00
Moonchild
efa2f805fe [netwerk] Make nsIncrementalStreamLoader's GetNumBytesRead threadsafe.
This prevents a potential race and simplifies the code a bit by keeping the
bytes read separate instead of using mData, which is modified from another
thread from OnDataAvailable.
Relaxed atomics are fine for these, since they don't guard any memory.
2020-10-30 09:08:13 +08:00
Moonchild
e77b184480 [DOM] When failing to create a channel and an image request, make sure to set
the image blocking status appropriately.

This is the same status as we do for known no-data protocols and ensures we
treat these two cases the same.
2020-10-23 10:05:56 +08:00
Moonchild
078536b2bb [DOM Fetch] Detect broken pipes and propagate that write error to the caller. 2020-10-23 10:05:55 +08:00
Moonchild
962a17acb7 [DOM Fetch] Improve stability of Fetch API. 2020-10-23 10:05:53 +08:00
athenian200
1f68b25468 Issue #1668 - Part 2: Visited color and auto support for caret-color property.
Mozilla's original implementation of this failed a couple of tests, but this seems to solve all the problems. Basically, the caret-color wasn't able to be set differently based on whether a link was visited, and the auto value implementation was incomplete. The only test we fail now is the one where you have grey text on a grey background and the caret is supposed to be visible, but I think that may have been removed from the spec. Even if it wasn't, no other browser supports it anyway.
2020-10-23 10:05:52 +08:00
athenian200
33e50615d9 Issue #1668 - Part 1: Implement support for caret-color property.
This CSS property allows input carets (that blinking input cursor you see in text fields), to be given a custom color. This was implemented in Firefox 53, and it was such a minor feature that no one ever missed it, but I don't see any harm in implementing this.

https://bugzilla.mozilla.org/show_bug.cgi?id=1063162
2020-10-23 10:05:51 +08:00
Moonchild
e3f6690ee7 Issue #1671 - Unprefix ::-moz-selection
This actually keeps both pseudo-elements for now, since the prefixed version is
still used internally, but we need the unprefixed version for web compat.
Note: while unprefixing a non-spec-compliant pseudo here, it's exactly in line
with what other browsers do. Nobody is following the spec here and at least
we'll be doing what everyone else is with our unprefixed version.
2020-10-23 10:05:49 +08:00
Moonchild
317b96a1be Issue #1643 - Follow-up: Ensure we properly clear our pointers when the
Presentation of a document is destroyed.
2020-10-23 10:05:48 +08:00
Moonchild
208ef44f9f [Basilisk] Issue #23 - Enable per-monitor DPI v2 in Basilisk 2020-10-09 21:11:22 +08:00
Moonchild
056e62198a [Pale-Moon] [SSUAO] Update Yahoo override, since they now throw a fit when seeing anything "Pale Moon" in the UA. 2020-10-09 21:07:16 +08:00
Moonchild
4c4f6c9a9d [Pale-Moon] Issue #1812 - Enable per-monitor DPI v2 in Pale Moon 2020-10-09 21:06:38 +08:00
Moonchild
b5370edd80 [Pale-Moon] [app update] Move update cert entries to branding 2020-10-09 21:06:09 +08:00
Moonchild
810ce6aa74 Issue #1606 - Add support for multi-monitor DPI awareness v2 (W10 1706+) 2020-10-09 21:00:03 +08:00
Moonchild
82fe52adab [devtools] Teach devtools about overflow-wrap: anywhere
Tag #1666
2020-10-09 21:00:01 +08:00
Moonchild
d602cb077b Issue #1666 - Implement overflow-wrap: anywhere
This aligns with the current spec regarding overflow-wrap: break-word and
overflow-wrap: anywhere in if it affects intrinsic sized due to considering
soft-wrap opportunities or not.
See CSS Text Module Level 3, Editor’s Draft, 1 October 2020, Section 5.5
2020-10-09 21:00:00 +08:00
Moonchild
6f8365a077 Issue #1665 - Take overflow-wrap into account when calculating min-content intrinsic size. 2020-10-09 20:59:59 +08:00
Moonchild
5465ff9914 [Pale-Moon] [downloads] Correct and simplify host handling. 2020-10-02 17:24:24 +08:00
New Tobin Paradigm
30bcf6f347 Update CONTRIBUTING.md
Revise Commit message style and add Follow-up form
2020-10-02 17:19:58 +08:00
athenian200
9f00ec1dfe Issue #1647 - Followup: Remove excessive VARIANT_OPACITY statements.
I got very anxious about making sure I included VARIANT_OPACITY in all the places VARIANT_NUMBER was included to make sure it couldn't possibly break unexpectedly, and that led to me accidentally breaking a mechanism that prevented percentages from serializing as numbers in other parts of the code. It was a total accident, and these additions were unnecessary. Basically, the situation is that there was one part of the code where it determines what's allowed for the flex statement (and possibly other statements) by checking whether it got stored as a "number", and basically only disallows percentages if it attempted to store/serialize them as percentages.

However, it only got to that part of the code because I accidentally allowed VARIANT_OPACITY as a valid way for certain tokens to parse where it wasn't necessary. If it tries to parse it that way under very specific circumstances... percentages will be marked valid and fed through the system as numbers rather than being rejected and not serialized at all, because the check to disallow percentages there relied on them being stored as percentages.

It's a really weird thing to have a problem with in a lot of ways, because if percentages aren't allowed in a field, you would think people wouldn't try to use them there, much less depend on the broken behavior that results from them not parsing as a related value.
2020-10-02 17:19:56 +08:00
Moonchild
2fae136204 Issue #1643 - Follow-up: Make sure things aren't changed while iterating.
This fixes some crashing scenarios.
2020-10-02 17:19:55 +08:00
Matt A. Tobin
7f8852baa3 Issue #1643 - Follow up: Add a null check for mOwner in ResizeObserverNotificationHelper::Unregister
A race condition seemed to exist between tab destruction and un-registering a ResizeObserver resulting in a null deref crash.
The original reporter in Forum Topic 25311 experienced this on msn.com so that was the functional test reference.
2020-10-02 17:19:53 +08:00
Gaming4JC
0a7e2d0150 Issue #1656 - Fix broken comment from Part 1
Removing the vim line unintentionally broke the comment leading to build failure, this restores the comment.
2020-10-02 17:19:52 +08:00
Moonchild
68ed744bb6 [Pale-Moon] [downloads] Stop using referrers as sources. 2020-09-25 22:17:19 +08:00
Moonchild
5c9b23f028 [Pale-Moon] Whitespace fixes. No code change. 2020-09-25 22:16:53 +08:00
Moonchild
093f9b4f55 [Pale-Moon] Issue #1744 - Add pref to ask for master password on application start.
This is a solution for some users having issues with multiple MP prompts due to
either a race or asynchronously-triggered features that each need password
database access (e.g. website login + sync)

Based on Interlink's similar solution by Matt A. Tobin
2020-09-25 22:16:30 +08:00
Moonchild
f8c9d784db [Basilisk] [downloads] Stop using referrers as sources 2020-09-25 22:14:31 +08:00
Moonchild
9c59990883 Issue #1656 - Part 10: Manual cleanup. 2020-09-25 22:07:01 +08:00
Moonchild
9305760571 Issue #1656 - Part 9: Single-line-comment style. 2020-09-25 22:07:00 +08:00
Moonchild
d5919942ff Issue #1656 - Part 8: Devtools and misc. 2020-09-25 22:06:55 +08:00
Moonchild
dabd32f955 Issue #1656 - Part 7: Nuke vim config lines in JS 2020-09-25 22:04:24 +08:00
Moonchild
0cd673d720 Issue #1656 - Part 6: Clean up the build files 2020-09-25 22:04:23 +08:00
Moonchild
538b420319 Issue #1656 - Part 4: Manual cleanup 2020-09-25 22:04:20 +08:00
Moonchild
d7a4abc3d4 Issue #1656 - Part 4: Tackle *.idl, *.css, *.ipdlh, *.webidl, *.cc 2020-09-25 22:04:18 +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
f9cc5ab011 Issue #1656 - Part 2b: Unmangle one more lost little UTF-8 victim. 2020-09-25 22:04:15 +08:00
Moonchild
ed7e49eda6 Issue #1656 - Part 2: Unmangle some unfortunate UTF-8 victims.
The poor fellows got lost in an ASCII-interpretation of the world.
2020-09-25 22:04:14 +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
10a6db6d3a Output webidl filenames as they are processed, for real this time. 2020-09-25 22:04:08 +08:00
Moonchild
78bcb176ea Issue #1655: Update MediaQueryList to the current draft spec.
This make MediaQueryList inherit from EventTarget and adds MediaQueryListEvent
as an interface as well as the onchange() method.
This should not affect compatibility with other code; the event object is a
MediaQueryListEvent instance, which is recognized as a MediaListQuery instance.
2020-09-25 22:04:07 +08:00
Moonchild
f15da2d08c [webaudio] Keep track of whether the HRTF database has already been loaded.
This DiD measure ensures that our async HRTF database loading is completed
before we actually try to use it. If not done, database() simply returns null.
2020-09-25 22:04:06 +08:00
Moonchild
e1b0d4eea1 [dom/media] Use an atomic for mInputDeviceID to avoid potential race 2020-09-25 22:04:04 +08:00
Moonchild
ba9802a724 [SVG] Only fire the SVG onload when scripting is enabled and allowed 2020-09-25 22:04:03 +08:00
Moonchild
57c79f8295 [no issue] Fix whitespace (no code change) 2020-09-25 22:04:02 +08:00
Moonchild
fe7be5d771 Isse #1224 - revert change to unbust debug builds. 2020-09-25 22:04:00 +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