Commit graph

218 commits

Author SHA1 Message Date
Matt A. Tobin
e0ad4cf19a Issue #65 - Remove AppConstants from toolkit/components/printing 2020-02-08 07:14:31 +08:00
Matt A. Tobin
d28907df2a Issue #65 - Remove AppConstants from toolkit/components/satchel 2020-02-08 07:14:28 +08:00
Matt A. Tobin
0cd01bac24 Issue #65 - Remove AppConstants from toolkit/components/jsdownloads 2020-02-08 07:14:26 +08:00
wolfbeast
92b01bf08a Issue #1263 - Part 1: Remove DiskSpaceWatcher 2019-11-08 20:23:33 +08:00
athenian200
45bf760ac5 MoonchildProductions#1251 - Part 27: Fix ifdef style.
This should do it for all the commits to files I changed, but while I'm in here I could probably go ahead and turn ALL the singular if defined statements into ifdef statements by using grep/find on the tree. On the other hand, perhaps we should do that as a separate issue so that this doesn't become a case of scope creep.
2019-11-04 11:54:07 +08:00
athenian200
afb2e3a054 MoonchildProductions#1251 - Part 4: Core build system changes, lots of libevent/IPC junk.
This is mostly ifdefs, but as you can see, Solaris is actually a lot like Linux. They're both more SysV than BSD at core, and most of the differences have more to do with Solaris not using glibc than anything else.

I still need to audit a lot of these changes and understand why they're needed and what the alternative approaches are. After this patch, most of the core functionality needed to build Solaris is here.
2019-11-04 11:52:17 +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
06634f6495 Issue #1134: Reinstate postDataString for about:home searches. 2019-08-17 13:31:01 +08:00
wolfbeast
aa1fc0720e Hide and disable open_all/cut/copy/delete/properties when opening
bookmarks/history context menu with no selection

This resolves #882 (by not offering options that can't be used)
2019-08-02 13:48:47 +08:00
wolfbeast
d2baf53a14 Revert "Capture delayed events and cancel as necessary."
Tag #1052 (backout).
Backed out for creating issues like #1191 and other issue-less problems
with e.g. losing the caret from text boxes. Of note: this was also
backed out from m-c for similar reasons in Bug 1332433.
This fixes #1191.
This reverts commit 3424afccaebc71c4acd4fa9eadf519c408c5965b.
2019-07-19 10:04:49 +08:00
Gaming4JC
b4fa30b382 Issue #1160 - Remove HotFix Preferences from Telemetry 2019-07-08 20:29:14 +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
d7fad8539b Make nsFind::Find actually use a string type as input.
Futureproofing follow-up to b89570e31cfb84449241e363a595540b8810c217
2019-05-31 07:22:21 +08:00
wolfbeast
b3deb955e9 [places] Prevent some abuse of smart queries. 2019-05-31 07:21:02 +08:00
monikamaheshwari
cf0a5a54cd Bug 1429442 - Buttons in "type control" popup in reader mode should have tooltips r=Gijs,MarcoZ 2019-05-11 06:22:10 +08:00
Sonali9
03e0f27552 Bug 1151735 - Hide font panel when text is being selected r=Gijs 2019-05-11 06:22:08 +08:00
monikamaheshwari
deed413b53 Bug 1422680 - simplify aboutReader.css font-size classes using CSS variables r=Gijs 2019-05-11 06:22:06 +08:00
Ascrod
a0ceaeace8 Bug 1399616 - add WP emoji styling to reader mode. 2019-05-11 06:22:04 +08:00
Ascrod
ecf329f733 Fix parse node limit preference. Tag #361. 2019-05-11 06:22:02 +08:00
Ascrod
14aede3cc5 Replace explicit pref observer with lazy preference getters. Tag #361. 2019-05-11 06:22:00 +08:00
Ascrod
85caaf571c Update surrounding code for new Readerable module. Tag #361. 2019-05-11 06:21:58 +08:00
Ascrod
5252a0779a Update Readability from mozilla-central release branch (FF 66.0.3). Tag #361. 2019-05-11 06:21:55 +08:00
wolfbeast
e3827df1a0 Capture delayed events and cancel as necessary.
Tag #1052
2019-04-27 08:56:22 +08:00
Matt A. Tobin
c6d0f188da Don't use UpdateChannel.jsm in nsBlocklistService.js 2019-04-27 08:55:33 +08:00
Matt A. Tobin
97059c1b48 Issue #1053 - Drop support Android and remove Fennec - Part 1b: Remove MOZ_FENNEC 2019-04-27 08:51:55 +08:00
Matt A. Tobin
85045bf6be Sort out search service
The ESR52 implementation is now Basilisk specific and the older implementation is the shared toolkit one
2019-04-27 08:27:19 +08:00
Matt A. Tobin
0142cf25ab Remove tests from search service 2019-04-27 08:27:09 +08:00
Ascrod
f591aeb2fa Remove browser.search.region usage. Tag #245. 2019-04-27 08:25:33 +08:00
Ascrod
732e1e66f3 Remove geoip lookup for search engine defaults. Tag #245. 2019-04-27 08:25:30 +08:00
ThosRTanner
660304c6ff Remove unused parameter from call
Fixes #1043
2019-04-27 08:24:25 +08:00
Ascrod
0e3dbe8f54 Remove unused try/catch block. Tag #991. 2019-04-27 08:23:33 +08:00
Ascrod
09bcb1f834 Pref try/catch block fixup. Tag #991. 2019-04-27 08:22:27 +08:00
Ascrod
e309515e66 Issue #991 Part 7: Toolkit Components 2019-04-27 08:22:20 +08:00
Moonchild
ccf32a6b79 Remove various FxA tests 2019-04-19 09:40:26 +08:00
wolfbeast
0a50553673 Issue #187: Remove solaris 1st party code OS checks. 2019-04-04 20:26:29 +08:00
Gaming4JC
50bf383712 Issue #756 - Remove Contextual Identity from UnifiedComplete
reverts m-c 1287866
2019-03-29 22:26:12 +08:00
Gaming4JC
fbd9f1fcd4 Issue #756 - Remove contextual identity from BackgroundPageThumbs.jsm
reverts m-c 1279568, 1309699, 1310112
2019-03-29 22:23:03 +08:00
Ascrod
8d45fa6874 Remove obsolete getPref helpers. 2019-03-29 22:22:33 +08:00
Matt A. Tobin
fbac3d3bce Don't include nsDownloadManagerUI if the Communicator version is used
Maintain backwards compatibility with MOZ_SUITE
2019-03-09 10:22:42 +08:00
Matt A. Tobin
3b0f343401 Revert "Don't include nsDownloadManagerUI if the Communicator version is used"
This reverts commit 853fe00ba0cb91d564031706ef82038e9a4619ed.
2019-03-09 10:22:40 +08:00
Matt A. Tobin
3133535495 Don't include nsDownloadManagerUI if the Communicator version is used
Maintain backwards compatibility with MOZ_SUITE
2019-03-09 10:22:35 +08:00
wolfbeast
1e6b075d1d Make the Auth prompt DOS protection a browser-element opt-in feature. 2019-03-02 12:19:28 +08:00
wolfbeast
54df9f8a30 WIP fix 1 2019-03-02 12:19:23 +08:00
wolfbeast
46927bbb59 Remove toolkit/components/maintenanceservice/
Tag #145
2019-02-21 14:56:42 +08:00
wolfbeast
1a5eb981a7 Include blankthumb in the correct file. 2019-02-16 00:27:57 +08:00
wolfbeast
39d5eb7759 Remove NS_IMPL_CYCLE_COLLECTION_TRAVERSE_SCRIPT_OBJECTS 2019-02-16 00:27:49 +08:00
adeshkp
521c918660 Remove telemetry leftovers from JS engine. 2019-02-16 00:27:38 +08:00
David Teller
7d0bef1093 Reduce number of allocations in AutoStopwatch
This patch fixes two related issues.
1. The AutoStopwatch uses a stack-allocated `mozilla::Vector` to
communicate with its callback during each compartment switch.
This vector was designed to allow its contents to be stack-allocated
but they turned out to be accidentally heap-allocated.

2. During each tick, the stopwatch fills a vector `recentGroups_`.
This vector always started with minimal capacity and had to grow
repeatedly as groups were added, causing repeated reallocations.
This patch preallocates `recentGroups_` to have the same capacity as the
previous tick. We expect that this should eventually reach a stable size
that closely matches the actual needs of the process.
2019-02-16 00:27:30 +08:00
wolfbeast
dce38e8d76 Revert "Reduce number of allocations in AutoStopwatch"
This reverts commit 3476c1d60ec29c5497123194acd7a9310b1023d2.
2019-02-16 00:27:29 +08:00
David Teller
059aeea416 Reduce number of allocations in AutoStopwatch
This patch fixes two related issues.
1. The AutoStopwatch uses a stack-allocated `mozilla::Vector` to
communicate with its callback during each compartment switch.
This vector was designed to allow its contents to be stack-allocated
but they turned out to be accidentally heap-allocated.

2. During each tick, the stopwatch fills a vector `recentGroups_`.
This vector always started with minimal capacity and had to grow
repeatedly as groups were added, causing repeated reallocations.
This patch preallocates `recentGroups_` to have the same capacity as the
previous tick. We expect that this should eventually reach a stable size
that closely matches the actual needs of the process.
2019-02-16 00:27:28 +08:00