summaryrefslogtreecommitdiffstats
path: root/xpcom
Commit message (Collapse)AuthorAgeLines
* MoonchildProductions#1251 - Part 3: Finally end the long tradition of ↵athenian2002019-10-21-1/+15
| | | | | | | | | | | casting getpid() to int. https://bugzilla.mozilla.org/show_bug.cgi?id=535106 https://bugzilla.mozilla.org/show_bug.cgi?id=1359841 Like many parts of the busted Solaris support, this one has its origins in the pre-Firefox days. Bug 535106, another Mozilla suite bug. It keeps coming up because the core issue is never addressed, the fact that nsTSubstring doesn't know how to handle pid_t. I think the explicit cast to int is a band-aid they use because they know if they touch that substring header file to make it handle pid_t, they'll probably be asked to fix all the other problems with it. I honestly think it just works by accident on other platforms because it's implicitly cast to signed or unsigned int, even though the POSIX standard says pid_t can be either long or int, and work as either a signed or unsigned integer. Whatever the case may be, it's handled better on Solaris now than it was. Ironically enough, the main point of having pid_t rather than just having pids be int or something is to hide this little implementation detail so you can just use pid_t for the return type in portable code without having to worry about what it is on a specific platform. The unfortunate way Mozilla implemented string functions turns that on its head and makes the good things about pid_t into liabilities rather than assets.
* MoonchildProductions#1251 - Part 1: Restore initial Solaris support, fixed up.athenian2002019-10-21-4/+631
| | | | | | | | | | | | | | 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.
* Kill newly-spawned threads if we're shutting down.Nathan Froyd2019-09-04-1/+3
|
* Revert "Treat *.jnlp as an executable class file, like *.jar"wolfbeast2019-06-28-1/+0
| | | | | | | | | | | | | | | | | | | 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).
* Treat *.jnlp as an executable class file, like *.jarwolfbeast2019-05-29-0/+1
|
* Merge pull request #1121 from win7-7/nsHtml5PortabilitylocalEqualsBuffer-prMoonchild2019-05-25-9/+9
|\ | | | | Use memcmp in nsHtml5Portability::localEqualsBuffer
| * use memcmp for nsIAtom Equals to improve performance xpcom/ds win7-72019-05-25-9/+9
| | | | | | issue #1113 Use memcmp and not slower string Equals in nsHtml5Portability::localEqualsBuffer
* | Avoid some useless ForgetSkippable handling while we're already dealingwolfbeast2019-05-25-0/+5
|/ | | | with snow-white objects.
* remove unnecessary spaceswin7-72019-05-24-4/+0
|
* add main thread only cache for nsIAtoms to speed up atomization xpcom/dswin7-72019-05-24-2/+57
| | | add main thread only cache for nsIAtoms to speed up atomization
* Unhook CR exception handler.wolfbeast2019-04-01-78/+0
| | | | Tag #20
* Remove AIX 1st party code OS checks, part 1wolfbeast2019-03-31-1162/+1
| | | | Issue #186
* Issue #187: Remove solaris 1st party code OS checks.wolfbeast2019-03-30-1422/+0
|
* Issue #187: Remove solaris conditional code.wolfbeast2019-03-30-111/+0
|
* Revert "Guard against re-entrancy in nsStringStream."wolfbeast2019-03-22-34/+0
| | | | This reverts commit 411919cca7a3795d08ec3cd24efa0167683a80fb.
* Guard against re-entrancy in nsStringStream.wolfbeast2019-03-22-0/+34
|
* Add a ClearElementAt API to nsTArrayJustOff2019-03-13-0/+18
|
* Remove NS_IMPL_CYCLE_COLLECTION_TRAVERSE_SCRIPT_OBJECTSwolfbeast2019-01-18-3/+0
|
* Consolidate tracing and traversing.wolfbeast2019-01-18-15/+37
|
* Telemetry: Remove stubs and related codeadeshkp2019-01-12-4/+0
|
* Add overflow checks for extending nsTArrays.wolfbeast2018-11-02-24/+50
| | | | | | Surprisingly, this was previously not done. Also, some of this code seems to be incorrect or, at the very least, wasn't clear what it was trying to do.
* Add mozilla::Spantrav902018-10-06-0/+167
|
* Remove unused telemetry functions/variables.wolfbeast2018-10-01-2/+1
| | | | Tag #21.
* Remove code that prevents binary extensionsMatt A. Tobin2018-09-23-8/+0
|
* Replace the custom logic in ObserverList with an nsTObserverArray which has ↵wolfbeast2018-09-11-7/+7
| | | | all the necessary logic for stable iteration over a potentially changing list of items.
* Remove all C++ telemetry autotimerswolfbeast2018-09-04-1/+0
|
* Remove all C++ Telemetry Accumulation calls.wolfbeast2018-09-03-22/+0
| | | | | This creates a number of stubs and leaves some surrounding code that may be irrelevant (eg. recorded time stamps, status variables). Stub resolution/removal should be a follow-up to this.
* Remove support for TLS session caches in TLSServerSocket.wolfbeast2018-09-01-0/+13
| | | | This resolves #738
* Remove the const to fix the -Wignored-qualifiers warning with GCC 8trav902018-08-10-3/+3
|
* Bug 1468217 - Add "SettingContent-ms" to the list of executable file ↵Paolo Amadini2018-06-30-0/+1
| | | | extensions. r=Gijs, a=RyanVM
* Bug 1413868.wolfbeast2018-06-30-0/+457
|
* Remove SPS profiler.wolfbeast2018-05-24-661/+3
| | | | | - Conditionals and code blocks. (MOZ_ENABLE_PROFILER_SPS) - Stub out several profiler-only functions.
* Remove the Dark Matter Detector (DMD) Memeory debugger component.wolfbeast2018-05-23-266/+3
| | | | This resolves #376.
* Remove other gonk widget conditionals and unused files.wolfbeast2018-05-13-2/+0
| | | | Tag #288.
* Remove MOZ_WIDGET_GONK [1/2]wolfbeast2018-05-12-76/+6
| | | | Tag #288
* Merge branch 'intl-ICU-emoji-work'wolfbeast2018-05-04-3/+1
|\
| * Issue #325 Part 14: Remove EXPOSE_INTL_API conditionals.wolfbeast2018-05-04-3/+1
| |
* | Remove unused XREShellDatawolfbeast2018-05-03-21/+1
| |
* | Remove sandbox ductwork conditional code.wolfbeast2018-05-03-75/+0
| |
* | Remove content process sandbox code.wolfbeast2018-05-02-73/+0
|/
* Bug 338865 - Scriptable XPIDL iface inheriting from noscript iface should ↵janekptacijarabaci2018-04-30-1/+1
| | | | throw error
* Bug 1411415.wolfbeast2018-04-29-1/+1
|
* Remove support for making jemalloc4 the default memory allocator.wolfbeast2018-04-27-2/+0
|
* Remove build support for HP-UXwolfbeast2018-04-24-43/+0
| | | | Note: 3rd party lib support (NSS, etc.) has not been touched.
* Bug 1452202 - Clean up PLDHashTable move operator. r=froydnj, a=RyanVMEric Rahm2018-04-19-5/+5
| | | | | | --HG-- extra : source : 9036c64b7a66ffe93e717ca97642a4400e396d9c extra : intermediate-source : 041d1c561feb5f4d9bcd492f31f7203ca477f938
* Merge pull request #171 from janekptacijarabaci/js_location_hash_1New Tobin Paradigm2018-04-15-1/+1
|\ | | | | Fix: no escape single quote in location.hash
| * JS - location.hash - no escape single quotejanekptacijarabaci2018-02-12-1/+1
| |
* | Convert MOZILLA_OFFICIAL conditionals to MC_OFFICIAL where needed.wolfbeast2018-04-13-1/+1
| | | | | | | | | | | | | | | | | | - `--enable-official-branding` implies `MC_OFFICIAL` (no need to specifically set it) - `--enable-official-vendor` can be used to set `MC_OFFICIAL` on builds without `--enable-official-branding` that should still be considered official release versions. - `MC_OFFICIAL` implies `--enable-release`, meaning `DEVELOPER_OPTIONS` isn't set - `MC_OFFICIAL` makes `nsXULAppInfo.getIsOfficial` return `true` - `MC_OFFICIAL` makes `AppConstants.MOZILLA_OFFICIAL` (for compatibility in extensions) and `AppConstants.MC_OFFICIAL` return `true` - Optional, for the time being: `MOZILLA_OFFICIAL` is still present in some places in case someone wants to build a Mozilla-alike official application and has the rights and necessary keys to use Mozilla-official third-party services. This must always be combined with `MC_OFFICIAL` to have a sane combination of defines. This may be removed in the future.
* | Rebase on masterwolfbeast2018-04-11-2/+2
|\ \
| * | Fix Value::isGCThing footgun, stop returning true for NullValuetrav902018-04-07-2/+2
| | |