Commit graph

4,074 commits

Author SHA1 Message Date
athenian200
4e15e4c252 Issue #1629 - Part 1: Implement basic logic in HTMLLinkElement.
So basically, I'm trying to adapt this to UXP:

https://bugzilla.mozilla.org/show_bug.cgi?id=1281135

The earliest source of difficulty while adapting Bug 1281135 to our codebase was simply getting the new ErrorResult flag added to the SetDisabled function to play nice with the SetMozDisabled function. At this point, the implementation can actually have a stylesheet be disabled by default but there are supposedly issues with alternate stylesheets.

At first I played around with the return type of SetMozDisabled to no avail, but I found another solution fairly quickly.

https://bugzilla.mozilla.org/show_bug.cgi?id=846972
https://bugzilla.mozilla.org/show_bug.cgi?id=1157898

Essentially, the way around the problem of the number of return arguments not matching up is to declare a local variable within SetMozDisabled called ErrorResult rv, and using that to store the return value of the ErrorResult argument from SetDisabled. After that, because ErrorCode was removed, you would return rv.StealNSResult() in order to report success or failure to any consumer that calls on SetMozDisabled.
2020-08-19 16:21:17 +08:00
Gaming4JC
e3326c56b1 Issue #1620 - Intrinsic Aspect Ratio: Debug Follow up.
Newly introduced aspect-ratio property did not have CSS_PROP_LIST_EXCLUDE_INTERNAL defines, resulting in the following assertion:
\!nsCSSProps::PropHasFlags(p, (1<<28)) (properties defined outside of #ifndef CSS_PROP_LIST_EXCLUDE_INTERNAL sections must not have the CSS_PROPERTY_INTERNAL flag), at ...layout/style/nsCSSProps.cpp:289

This patch resolves the assertion by adding #ifndef around the aspect-ratio property.
2020-08-19 16:20:59 +08:00
FranklinDM
194f96855e [Pale-Moon] Issue #1824 - Fix broken page style menu selection for alternative style sheets
Missing `return` in anonymous function which checks if the given style sheet title is present in the document's style sheet array.
2020-08-14 09:01:47 +08:00
Pale Moon
aa1210518c [Pale-Moon] Update user-agent overrides and reorganize. 2020-08-14 09:01:29 +08:00
Moonchild
07929daad2 [CSS] Alias -webkit-appearance for compatibility reasons
Since this is supported as an alias by Firefox and Edge for the same
reasons and we have websites using this to (attempt to) override the
system-provided styling with their own, leaving out the only supported
keyword we'd otherwise have (with -moz- prefix) but still stating
-webkit-.

TODO: unprefix this completely and make the vendor prefixes aliases.
2020-08-14 08:59:42 +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
c02e424911 Issue #1620 - Remove Development Comments 2020-08-14 08:59:35 +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
Roy Tam
1ee66d0a5f bump palemoon version 2020-08-13 09:22:06 +08:00
Roy Tam
35f288dc4a Revert UXP issue 1628 related changes. 2020-08-08 10:14:13 +08:00
Matt A. Tobin
15c137e0b0 [Basilisk] Issue MoonchildProductions/UXP#1628 - Remove extensions.update.background.url from preferences 2020-08-08 06:59:26 +08:00
Matt A. Tobin
9664369ac7 [Pale-Moon] Issue MoonchildProductions/UXP#1628 - Remove extensions.update.background.url from preferences 2020-08-08 06:57:58 +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
Matt A. Tobin
3bfc574220 Issue #1628 - Remove redundant PREF_EM_UPDATE_BACKGROUND_URL 2020-08-08 06:56:47 +08:00
Gaming4JC
5703454329 Issue #1621 - Part 4: Check whether node can be splited.
At first, HTMLEditor::GetActiveEditingHost might return null in this situation, we should check whether nullptr is returned. At second, SplitNodeDeep returns error since curent is design mode and selection node has no parent. So we should check error.

Ref: Bug 1350772
2020-08-06 10:23:48 +08:00
Gaming4JC
ec1301a85d Issue #1621 - Part 3: Use nsIAtom to change attirbute if possible.
We can replace old nsIEditor API with nsIAtom version.

Ref: Bug 1324996
2020-08-06 10:23:45 +08:00
Gaming4JC
b6b2792a35 Issue #1621 - Part 2: Implement nsIAtom version of SetAttribute/RemoveAttribute/CloneAttirubte.
Add nsIAtom version of the following.
 - CloneAttribute
 - RemoveAttribute
 - RemoveAttributeOrEquivalent
 - SetAttribute
 - SetAttributeOrEquivalent

Ref: Bug 1324996
2020-08-06 10:23:43 +08:00
Gaming4JC
5260565a09 Issue #1621 - Part 1: CSSEditUtils should use atom for CSS property if possible.
There is a lot of string compare when using CSS property name. We should use nsGkAtoms instead.

Ref: Bug 1323138
2020-08-06 10:23:41 +08:00
Matt A. Tobin
ee8c57f6da Issue #1625 - Allow MailNews Oauth2 support to be configured in confvars.sh
Baby has his bottle, you ok now?
2020-08-06 10:23:28 +08:00
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