Commit graph

49 commits

Author SHA1 Message Date
wuggy
a5cf494890 Add support for compiling under MinGW + fix Windows compiling in general 2026-04-17 15:05:11 -07:00
K4sum1
633ef1c426 Mypal portable mode 2025-09-27 19:36:46 -07:00
roytam1
f4d2bf6c3d Merge remote-tracking branch 'origin/tracking' into custom 2025-06-27 23:33:55 +08:00
Moonchild
80b542efc3 [XPCOM] Add Mac-specific executable extensions 2025-06-27 23:31:20 +08:00
roytam1
c6517989ab Merge remote-tracking branch 'origin/tracking' into custom 2024-11-29 21:00:51 +08:00
Moonchild
857990d172 [XPCOM] Warn about .library-ms files on Windows (treat as executable) 2024-11-29 20:53:57 +08:00
roytam1
552db66da0 Merge remote-tracking branch 'origin/tracking' into custom 2024-04-19 09:37:04 +08:00
Moonchild
f6204a7ca8 [XPCOM] Warn about .xrm-ms files on Windows (treat as executable) 2024-04-19 09:33:28 +08:00
roytam1
fa72b197d9 Merge remote-tracking branch 'origin/tracking' into custom 2024-01-05 10:11:42 +08:00
Moonchild
dc425fc3e8 Revert "[XPCOM] Compare return value of readlink in nsLocalFileUnix::GetNativeTarget"
This reverts commit 66b07ce6991160e768b5113f8adcd0b47be58791.
2024-01-05 10:06:34 +08:00
roytam1
a907bc3c17 Merge remote-tracking branch 'origin/tracking' into custom 2023-12-21 10:19:16 +08:00
Barret Rennie
8b5c0a9cd9 [XPCOM] Compare return value of readlink in nsLocalFileUnix::GetNativeTarget 2023-12-21 10:17:49 +08:00
roytam1
bac9ec9a84 Merge remote-tracking branch 'origin/tracking' into custom 2023-10-26 10:55:31 +08:00
Moonchild
74a4260ecd [XPCOM] Add several app/msi file types to the executables list (Win).
This errs on the side of caution for what are installer packages, but
people getting conned into thinking this is safe is a bit too common.
They are akin in danger to .exe files in that respect as it installs
software, and should be treated similarly, so, warn about the potential
danger.
2023-10-26 10:54:13 +08:00
roytam1
92d9218cf1 Merge remote-tracking branch 'origin/tracking' into custom 2023-08-31 22:43:48 +08:00
Moonchild
d33ab5822f [XPCOM] Add xll files to the executables list. 2023-08-31 22:40:45 +08:00
roytam1
9f1550fb53 Merge remote-tracking branch 'origin/tracking' into custom 2023-07-06 10:39:29 +08:00
Moonchild
c292f9ffdc [XPCOM] Win: Update executable extension list 2023-07-06 10:39:00 +08:00
roytam1
725b27a0f5 Merge remote-tracking branch 'origin/tracking' into custom 2023-05-05 23:02:05 +08:00
Moonchild
f1759b33ff Issue #1656 - Remove more vim control lines.
Vim control lines were re-introduced or not entirely cleaned up.
This nukes them again.
Removing from accessible, [root], tools, uriloader, widget, xpcom and
xpfe.
Resolves #1656
2023-05-05 23:00:05 +08:00
roytam1
de0b4ac202 Merge remote-tracking branch 'origin/tracking' into custom 2022-11-25 11:46:08 +08:00
FranklinDM
eb0c06101f Issue #2027 - Use reserved stack space instead of heap allocation in nsLocalFile
This should resolve the build bustage associated with c127f58ef3.

Based on https://bugzilla.mozilla.org/show_bug.cgi?id=1371279
2022-11-25 11:44:36 +08:00
Moonchild
dc04d9f795 [XPCOM] Deal with lstat potentially lying in nsLocalFileUnix. 2022-11-25 11:44:00 +08:00
roytam1
a6338caef0 fill static_assert() message added in rev 3fccd404 to fix build 2022-10-27 10:20:18 +08:00
Moonchild
3fccd404fb [XPCOM] Fix Base64 off-by-one issue and safeguard against this mistake in the future. 2022-10-27 09:03:59 +08:00
Stephen A Pohl
b188579bb6 [XPCOM] Improve the conversion of line breaks.
Fix an off-by-one error in CRLF checking.
2022-05-05 09:05:27 +08:00
Brian Smith
13fcc4a046 Issue #1829 - Revert "Issue #1751" 2022-05-04 09:40:24 +08:00
roytam1
f43ff83d54 backport Bug 1696685 - r=valentin,nika a=RyanVM 2021-12-14 23:10:15 +08:00
Moonchild
8744911c18 Issue #1772 - Stop using legacy code page conversion for file paths on Linux.
OS.File already only supports UTF-8 paths on non-Windows systems, so this change
makes our different ways of accessing file paths consistent with each other.
This should prevent unexpected crashes in glibc that expect UTF-8.

This resolves #1772.
2021-05-21 09:34:12 +08:00
Moonchild
df94ccb22c Issue #1751 -- Remove XP_MACOSX conditionals and support files from /xpcom 2021-05-05 10:28:58 +08:00
Moonchild
2f27335cc4 Issue #1751 -- Remove XP_DARWIN 2021-05-05 10:27:04 +08:00
David Major
07864a9251 [xpcom] Fix GetWindowsFolder storage 2020-11-19 21:11:57 +08:00
Moonchild
0cd673d720 Issue #1656 - Part 6: Clean up the build files 2020-09-25 22:04:23 +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
Andrea Marchesini
7a37234be2 [xpcom] Make Base64 compatible with ReadSegments() with small buffers. 2020-07-31 08:07:55 +08:00
Matt A. Tobin
26403f20ac Issue #1053 - Remove android support from XPCOM 2020-02-27 07:31:05 +08:00
athenian200
cbf60a2058 Fix a bunch of dumb typos and omissions. 2019-11-04 11:53:57 +08:00
athenian200
6de8a0f12d MoonchildProductions#1251 - Part 1: Restore initial Solaris support, fixed up.
Compared with what Pale Moon had for Solaris originally, this is mostly the same zero point I started patching from, but I've made the following changes here after reviewing all this initial code I never looked at closely before.

1. In package-manifest.in for both Basilisk and Pale Moon, I've made the SPARC code for libfreebl not interefere with the x86 code, use the proper build flags, and also updated it to allow a SPARC64 build which is more likely to be used than the 32-bit SPARC code we had there.

2. See Mozilla bug #832272 and the old rules.mk patch from around Firefox 30 in oracle/solaris-userland. I believe they screwed up NSINSTALL on Solaris when they were trying to streamline the NSS buildsystem, because they started having unexplained issues with it around that time after Firefox 22 that they never properly resolved until Mozilla began building NSS with gyp files. I'm actually not even sure how relevant the thing they broke actually is to Solaris at this point, bug 665509 is so old it predates Firefox itself and goes back to the Mozilla suite days. I believe $(INSTALL) -t was wrong, and they meant $(NSINSTALL) -t because that makes more sense and is closer to what was there originally. It's what they have for WINNT, and it's possible a fix more like that could serve for Solaris as well. Alternatively, we could get rid of all these half-broken Makefiles and start building NSS with gyp files like Mozilla did.

3. I've completely cut out support for the Sun compiler and taken into account the reality that everyone builds Firefox (and therefore its forks) with GCC now on Solaris. This alone helped clean up a lot of the uglier parts of the code.

4. I've updated all remaining SOLARIS build flags to the newer XP_SOLARIS, because the SOLARIS flag is no longer set when building Solaris.

5. I've confirmed the workaround in gtxFontconfigFonts.cpp is no longer necessary. The Solaris people got impatient about implementing a half-baked patch for a fontconfig feature that wasn't ready yet back in 2009, and somehow convinced Mozilla to patch their software to work around it when really they should have just fixed or removed their broken fontconfig patch. The feature they wanted has since been implemented properly, and no version of Solaris still uses the broken patch that required this fix. If anyone had ever properly audited this code, it would have been removed a long time ago.
2019-11-04 11:52:13 +08:00
wolfbeast
512a3ba8e8 Revert "Treat *.jnlp as an executable class file, like *.jar"
Rationale: This was a Mozilla oversight and/or error.
This change has caused harm and is causing users to switch back to
Chrome, Safari or Edge for their WebStart needs.

JNLP is not an executable and should not be treated as such. JNLP should
be treated the same as any (e.g. Word) document and allowed to be opened
with the designated program.
A JNLP file will not cause execution on a system unless it has a valid
signature, and the user explicitly authorizes the launching based on
information provided by the signature. Moreover, there will even be a
check by the Java environment to see if the Java runtime (if there is
one) is current, and prompt the user to update if required.

This reverts commit 21495c58976e3cbbfe54d2e54d1fd67e36dff2a6 and
modifies ApplicationReputation.cpp to keep the list in sync (was a
discrepancy before).
2019-06-29 06:03:55 +08:00
wolfbeast
ac3fb82b48 Treat *.jnlp as an executable class file, like *.jar 2019-05-31 07:22:25 +08:00
wolfbeast
769e5dad1e Remove AIX 1st party code OS checks, part 1
Issue #186
2019-04-04 20:26:39 +08:00
wolfbeast
78d61fd2b1 Issue #187: Remove solaris conditional code. 2019-04-04 20:26:26 +08:00
wolfbeast
df7640136e Revert "Guard against re-entrancy in nsStringStream."
This reverts commit 411919cca7a3795d08ec3cd24efa0167683a80fb.
2019-03-23 06:44:24 +08:00
wolfbeast
c7295cf476 Guard against re-entrancy in nsStringStream. 2019-03-23 06:44:23 +08:00
Paolo Amadini
393973a1f5 Bug 1468217 - Add "SettingContent-ms" to the list of executable file extensions. r=Gijs, a=RyanVM 2019-02-16 00:07:01 +08:00
wolfbeast
c180f85048 Bug 1413868. 2019-02-16 00:06:58 +08:00
wolfbeast
369378d566 Remove content process sandbox code. 2019-02-15 23:55:37 +08:00
janekptacijarabaci
637540d66e JS - location.hash - no escape single quote 2019-02-15 23:45:46 +08:00
Roy Tam
dcd9973243 import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo 2018-01-19 03:59:58 +08:00