Commit graph

4,055 commits

Author SHA1 Message Date
Moonchild
b52bc1586d [js] Try to catch bad pointers for GC and bail if not valid. 2020-08-06 10:23:26 +08:00
Andy
f15f44b445 Issue #1619 - Nits Picked 2020-08-06 10:23:13 +08:00
Andy
217374ebf6 Issue #1619 - Add Vertical Writing Testcase
Ensures aspect ratio numerator and denominator aren't swapped in vertical writing modes.
https://bugzilla.mozilla.org/show_bug.cgi?id=1548768
2020-08-06 10:23:11 +08:00
Andy
777b3cc622 Issue #1619 - Missing Dimension Computation
This existed in Firefox before this bug.
I don't know if it came from a previous bug or was removed post-fork.
2020-08-06 10:23:09 +08:00
Andy
3c02d3fc0d Issue #1619 - Convert Intrinsic Ratio to Float
https://bugzilla.mozilla.org/show_bug.cgi?id=1547792

Aspect Ratio handling simplified by using floating point integers:
- Multiplication of value (or inverse value) to a known side for Scaling
- No unequal equal values such as "4/3" vs "8/6" vs "20/15"
- Truly "Empty" aspect ratios, even if one dimension is not 0
2020-08-06 10:23:07 +08:00
Matt A. Tobin
c371979637 Add license header to media/webrtc/trunk/build/mac/find_sdk_uxp.py 2020-08-06 10:22:53 +08:00
Matt A. Tobin
91d2c4c05a Use an alt script to properly determine the OSX SDK version 2020-08-06 10:22:51 +08:00
Gaming4JC
a1a1d76e6f Bug 1318570 - Clean up GetTextNode into TextEditRules.
EditorBase parameter of GetTextNode is unnecessary because it uses static method only. Also, we should return nsINode to reduce QI.

Resolves #1617
2020-08-01 07:12:40 +08:00
Moonchild
ffa78473f6 [Pale-Moon] Clear user prefs for AbortController on migration to reset it for users who have disabled it for web compat in the meantime. 2020-07-31 08:11:58 +08:00
Moonchild
ce9a763cdb [Pale-Moon] Issue #1772 - Follow-up: properly reference restoreOnDemand (oops!) 2020-07-31 08:11:36 +08:00
athenian200
f08ee332d7 Issue #1615 - SunOS LDAP cleanup.
I meant to do this a long time ago, but basically it accounts for the new XP_SOLARIS build flag that never made it into the MailNews code. Additionally, it enables a compatibility flag for Solaris 11.4 that allows us to use the three-argument implementation of ctime_r still used by Solaris 11.3 and illumos (which also appears equivalent to the NSLDAPI_CTIME implementation used by libldap internally). Also, the ctime_r function has been added to the time.h header library for a while now, not sure why Mozilla thought we didn't have a ctime_r implementation.
2020-07-31 08:08:18 +08:00
Matt A. Tobin
a9478b09e1 Issue #1614 - Update en-US Dictionary 2020-07-31 08:08:11 +08:00
Moonchild
5f85ec0cd8 Improve dll loading on Windows. 2020-07-31 08:08:08 +08:00
Michael Tuexen
5ec7dd76e6 [WebRTC] Stop putting addresses in the cookie chunk.
When using AF_CONN addresses, don't put these in the COOKIE
chunk. For these addresses it is possible to reconstruct them
locally. Conceptually, addresses are something to be shared
with the peer, but in the case of AF_CONN this might not be
the case. Therefore, zero then out.

Thanks to Natalie Silvanovich of Google Project Zero for
finding and reporting the issue.
2020-07-31 08:08:05 +08:00
Moonchild
9dc4265141 [dom] Fix a spec compliance issue with the HTML LS regarding script loading.
This fixes a spec compliance issue with section 8.1.4.2 Fetching scripts.
2020-07-31 08:08:01 +08:00
Moonchild
ecf4aecd21 [js] Don't improve TypeSets containing the magic-args type.
JIT optimizations involving the Javascript 'arguments' object could
potentially confuse later optimizations, so we simply disable these
optimizations as a DiD measure.
2020-07-31 08:07:58 +08:00
Andrea Marchesini
7a37234be2 [xpcom] Make Base64 compatible with ReadSegments() with small buffers. 2020-07-31 08:07:55 +08:00
Jan de Mooij
51d75f257d [js] Fix Sink to check for non-recoverable operands. 2020-07-31 08:07:52 +08:00
Moonchild
52c03190ee [network/dom] Improve sanitization of download filenames. 2020-07-31 08:07:47 +08:00
Moonchild
b33e80b186 Issue #1391 - Remove the DOM battery API 2020-07-31 08:07:41 +08:00
Matt A. Tobin
d97bcfb97a Follow up to 39be34c06 - The check sound be if not ordered
FINE! I'll go to bed already...
2020-07-31 08:06:52 +08:00
Matt A. Tobin
b72d30186a [MailNews] Allow setting "Local Folders" as always the first displayed account 2020-07-31 08:06:07 +08:00
Matt A. Tobin
8d9b34816c [MailNews] Allow ordering of accounts to respect mail.accountmanager.accounts 2020-07-31 08:06:04 +08:00
Moonchild
078fea47aa Fix line endings. 2020-07-31 08:05:47 +08:00
Moonchild
70bf74e9d3 Issue #1587 Part 12 (followup 2): Allow clearing of signal by setting to null. 2020-07-31 08:05:44 +08:00
Moonchild
1ae6431766 Issue #1587 Part 11 (followup 1): Implement multithreaded signals for workers. 2020-07-31 08:05:40 +08:00
Matt A. Tobin
95c5a64b1f [Basilisk] Issue MoonchildProductions/UXP#1611 - Use platform default for WASM 2020-07-25 06:30:43 +08:00
Matt A. Tobin
caf316c9e4 [Pale-Moon] Follow up to Issue #1814 - Use correct casing for JavaScript 2020-07-25 06:30:19 +08:00
Matt A. Tobin
d29ccb177d [Pale-Moon] Issue #1814 - Add controls for WASM 2020-07-25 06:29:59 +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
b31c90d1ab Issue #1612 - Add-ons targeting Toolkit's ID (and not Firefox's) should be considered "native" by the Add-ons Manager when using the Dual-GUID system
A version bump triggering add-on compatibility check will re-evaluate the "native" status (among other things) so no extra or special work is required to fix erroneous warnings.

tl;dr instafix!
2020-07-25 06:25:46 +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
Pale Moon
8df44f9320 [Pale-Moon] Issue #1811 - Indicate our per-monitor DPI-awareness to the O.S.
This resolves #1811
2020-07-20 09:41:37 +08:00
Gaming4JC
d081fe1bc6 Issue #618 - Remove eager instantiation - Debug follow up
The added debug assertion did not take into account microtask refactoring done in BZ 1405821.
Resulting in error: no member named 'IsInMicroTask' in 'nsContentUtils'.

This resolves the error.
2020-07-20 09:38:43 +08:00
Moonchild
02a893b998 [Basilisk] Issue #17 - Reinstate erroneously removed unload event listener
Looks like this was just lazily lumped in with WebExtension stuff and got
removed as a result. This should prevent the autorefresh blocker from leaking.
2020-07-11 07:14:23 +08:00
Lootyhoof
be8bea50ff [Basilisk] Issue MoonchildProductions/UXP#1578 - Add global menubar support for GTK 2020-07-11 07:09:11 +08:00
Moonchild
8d5005090a [network] Use query and ref lengths if available in nsStandardURL. 2020-07-11 07:02:31 +08:00
Moonchild
415542eb7c [js] Get the class pointer from the ObjectGroup in NativeObject::slotSpan
This changes NativeObject::slotSpan() to get the class from the object group
rather than getting it from the base shape to avoid a race between
Shape::ensureOwnBaseShape and background sweeping.
2020-07-11 07:02:27 +08:00
Moonchild
e74bd52c8c Force clobber 2020-07-10 22:19:00 +08:00
Moonchild
9890572c8e [NSS] Version and build bump 2020-07-10 22:18:56 +08:00
Sohaib ul Hassan
62467c473d [NSS] Implement constant-time GCD and modular inversion
The implementation is based on the work by Bernstein and Yang
(https://eprint.iacr.org/2019/266)
"Fast constant-time gcd computation and modular inversion".

It fixes the old mp_gcd and s_mp_invmod_odd_m functions. The patch also fixes
mpl_significant_bits s_mp_div_2d and s_mp_mul_2d by having less control flow to
reduce side-channel leaks.

Co-authored by : Billy Bob Brumley
2020-07-10 22:18:52 +08:00
Moonchild
db9ccc90e0 [js] Improve readability and control flow of js date string parser. 2020-07-10 22:18:48 +08:00
Byron Campen [:bwc]
36e1df9ffb [WebRTC] Make candidate pair insertion code easier to read/understand.
Includes removing an error code for a function that never fails, and removing an
error return when the function successfully did what it said it would.

Ref: BZ 1644477
2020-07-10 22:18:45 +08:00
Moonchild
6aaea9dde6 [AppCache] Add check for disallowed encoded path separators 2020-07-10 22:18:42 +08:00
Moonchild
6cf5f024c4 [image] Add a sanity check to JPEG encoder buffer handling, just in case. 2020-07-10 22:18:38 +08:00
Moonchild
5ff6eca6c9 Issue #618 - Fix typo and remove old function declarations. 2020-07-10 22:18:24 +08:00
Moonchild
9201808e0a Issue #618 - Report source position information (line/column)
Report source position information for module export resolution failures.

Ref: BZ 1362098
2020-07-10 22:18:10 +08:00
Moonchild
e0ab4f9abf Issue #618 - Slightly improve module scripting tests.
Ref: BZ 1388728
2020-07-10 22:18:07 +08:00
Moonchild
743bdc04fb Issue #618 - Further align error handling for module scripts with the spec
Ref: BZ 1388728
2020-07-10 22:18:04 +08:00
Moonchild
c65ca2ca58 Issue #618 - Remove context and heap-idle check
For checking if a module is in an error state and what the error is, it
shouldn't matter if we are currently GC-ing or not. So we don't need to check
for it, which removes the requirement to pass in the JS context (needed for
AssertHeapIsIdle's runtime check); this unblocks progress where otherwise we'd
have to figure out what the context is at the module level just to satisfy this
check.
2020-07-10 22:18:01 +08:00