Commit Graph

38 Commits

Author SHA1 Message Date
Masatoshi Kimura
209fbc21cd Bug 1493414 - Re-enable warnings as errors on clang-cl in toolkit/xre/. r=froydnj
_CrtSetReportXxxx stuff is dead decause we do not use debug CRT even in debug
builds for a long time. So I removed it to fix -Wunused-function.

--HG--
extra : source : ba00278fc1deee805e7ed13d0dc0658dee13465c
extra : intermediate-source : 5ffdd1f9f2562f9915f3c8805218fa33a908be20
2018-09-18 22:04:28 +09:00
Tom Ritter
7e0fefeaa0 Bug 1475566 Disable #pragma comments for MinGW Builds r=glandium
In the MinGW browser build job, we're going to use -fms-extensions,
which will tell clang to start processing these comments. Clang
cannot process them correctly (it's an upstream bug) but it doesn't
need to, because we include the libs we need in moz.build files.

So we exclude them for MinGW builds. mingw-clang gets them wrong and
mingw-gcc (which doesn't even work anymore on -central) ignored them.

In the future, with a llvm fix, we could clean up the moz.build
files and re-enable these comments.

Differential Revision: https://phabricator.services.mozilla.com/D3527

--HG--
extra : moz-landing-system : lando
2018-08-29 03:50:39 +00:00
Henri Sivonen
3edc601325 Bug 1402247 - Use encoding_rs for XPCOM string encoding conversions. r=Nika,erahm,froydnj.
Correctness improvements:

 * UTF errors are handled safely per spec instead of dangerously truncating
   strings.

 * There are fewer converter implementations.

Performance improvements:

 * The old code did exact buffer length math, which meant doing UTF math twice
   on each input string (once for length calculation and another time for
   conversion). Exact length math is more complicated when handling errors
   properly, which the old code didn't do. The new code does UTF math on the
   string content only once (when converting) but risks allocating more than
   once. There are heuristics in place to lower the probability of
   reallocation in cases where the double math avoidance isn't enough of a
   saving to absorb an allocation and memcpy.

 * Previously, in UTF-16 <-> UTF-8 conversions, an ASCII prefix was optimized
   but a single non-ASCII code point pessimized the rest of the string. The
   new code tries to get back on the fast ASCII path.

 * UTF-16 to Latin1 conversion guarantees less about handling of out-of-range
   input to eliminate an operation from the inner loop on x86/x86_64.

 * When assigning to a pre-existing string, the new code tries to reuse the
   old buffer instead of first releasing the old buffer and then allocating a
   new one.

 * When reallocating from the new code, the memcpy covers only the data that
   is part of the logical length of the old string instead of memcpying the
   whole capacity. (For old callers old excess memcpy behavior is preserved
   due to bogus callers. See bug 1472113.)

 * UTF-8 strings in XPConnect that are in the Latin1 range are passed to
   SpiderMonkey as Latin1.

New features:

 * Conversion between UTF-8 and Latin1 is added in order to enable faster
   future interop between Rust code (or otherwise UTF-8-using code) and text
   node and SpiderMonkey code that uses Latin1.

MozReview-Commit-ID: JaJuExfILM9
2018-08-14 14:43:42 +03:00
Adam Gashlin
cdb01305b3 Bug 603903 - Part 1: add RegisterApplicationRestart r=jimm
MozReview-Commit-ID: Eb389ih7CIn

--HG--
extra : rebase_source : b8657950fb08b899528d3ac3720a31769b3e14ba
2018-05-15 15:37:45 -07:00
Aaron Klotz
54b1b3b99d Bug 1457999: Part 1 - Move command line argument utils and safe mode checks into a common header file; r=jimm 2018-04-19 17:22:41 -06:00
Aaron Klotz
580a1a60b9 Bug 1457999: Backed out changeset 3b3a2ae3a6d3 due to Linux bustage; r=backout CLOSED TREE
--HG--
extra : histedit_source : 4cf63e65bd53e89ca9165d19642a9328c3eeeaa6
2018-05-07 11:22:14 -06:00
Aaron Klotz
9fc5eb0316 Bug 1457999: Part 1 - Move command line argument utils and safe mode checks into a common header file; r=jimm 2018-04-19 17:22:41 -06:00
Aaron Klotz
2cd522a2f4 Bug 1457999: Backed out changeset d838002f9a52 due to Linux preprocessor errors; r=backout CLOSED TREE
--HG--
extra : histedit_source : 0a31b8596f8525662a19f6221c605b19486baefc
2018-05-07 11:01:00 -06:00
Aaron Klotz
d6661abc54 Bug 1457999: Part 1 - Move command line argument utils and safe mode checks into a common header file; r=jimm
--HG--
extra : rebase_source : 368d45d026ddc658ba732b6f58fcd976c48ff7d4
2018-04-19 17:22:41 -06:00
Sylvestre Ledru
4e9cf83ee8 Bug 1378712 - Remove all trailing whitespaces r=Ehsan
MozReview-Commit-ID: Kdz2xtTF9EG

--HG--
extra : rebase_source : 7235b3802f25bab29a8c6ba40a181a722f3df0ce
2017-07-06 14:00:35 +02:00
Jeff Walden
7192c2be5a Bug 1256027 - Windows, why you gotta hate. r=scumbag-windows in a CLOSED TREE 2016-03-23 18:40:01 -07:00
Jeff Walden
3b8b70a765 Bug 1256027 - Cast a few things in varargs to the expected types for MSVC 2015 warning-compatibility. r=froydnj
--HG--
extra : rebase_source : 5caa63bb236b4840fda4f2c6bf91e987c7905195
2016-03-23 13:21:02 -07:00
Ehsan Akhgari
1b83407ce9 Bug 927728 - Part 1: Replace PRUnichar with char16_t; r=roc
This patch was automatically generated by the following script:

#!/bin/bash
# Command to convert PRUnichar to char16_t

function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
       ! -wholename "*security/nss*" \
       ! -wholename "*modules/libmar*" \
       ! -wholename "*/.hg*" \
       ! -wholename "obj-ff-dbg*" \
       ! -name prtypes.h \
       ! -name Char16.h \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -o -iname "*.c" \
         -o -iname "*.cc" \
         -o -iname "*.idl" \
         -o -iname "*.ipdl" \
         -o -iname "*.ipdlh" \
         -o -iname "*.mm" \) | \
    xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}

convert PRUnichar char16_t
2014-01-04 10:02:17 -05:00
Jacek Caban
ae12308871 Bug 944913 - Fixed char16_t/wchar_t mismatch in tollkit/. r=ehsan
--HG--
extra : rebase_source : c33427dd7c1c2db3d2741b8c2e0d1b4a0359a0a4
2013-12-03 16:07:22 +01:00
Birunthan Mohanathas
b2658eb131 Bug 784739 - Switch from NULL to nullptr in toolkit/; r=ehsan 2013-10-10 16:36:42 -04:00
Ehsan Akhgari
2362f4b5ee Bug 307181 - Stage Firefox updates in the background after they're downloaded, and replace the application directory on restart; r=rstrong,bbondy
When Firefox downloads an update, it previously kept the update around to apply
it on the next restart.  This patch changes this so that the updater program
is launched in the background as soon as the update has finished downloading
in order to stage the updated version of the application by copying the
existing installation directory to a temporary location and applying the update
on top of it, and replace the existing installation directory with the staged
directory on the next restart.

Because the replacing step is typically very fast, this patch eliminates the
wait for the update to be applied on restart, making it unnecessary to show a
progress dialog when restarting.

--HG--
rename : toolkit/mozapps/update/test/chrome/test_0092_finishedBackground.xul => toolkit/mozapps/update/test/chrome/test_0093_stagedBackground.xul
rename : toolkit/mozapps/update/test/unit/test_0110_general.js => toolkit/mozapps/update/test/unit/test_0113_general.js
rename : toolkit/mozapps/update/test/unit/test_0111_general.js => toolkit/mozapps/update/test/unit/test_0114_general.js
rename : toolkit/mozapps/update/test/unit/test_0112_general.js => toolkit/mozapps/update/test/unit/test_0115_general.js
rename : toolkit/mozapps/update/test/unit/test_0170_fileLocked_xp_win_complete.js => toolkit/mozapps/update/test/unit/test_0172_fileLocked_xp_win_complete.js
rename : toolkit/mozapps/update/test/unit/test_0171_fileLocked_xp_win_partial.js => toolkit/mozapps/update/test/unit/test_0173_fileLocked_xp_win_partial.js
rename : toolkit/mozapps/update/test/unit/test_0110_general.js => toolkit/mozapps/update/test_svc/unit/test_0113_general_svc.js
rename : toolkit/mozapps/update/test/unit/test_0111_general.js => toolkit/mozapps/update/test_svc/unit/test_0114_general_svc.js
rename : toolkit/mozapps/update/test/unit/test_0112_general.js => toolkit/mozapps/update/test_svc/unit/test_0115_general_svc.js
rename : toolkit/mozapps/update/test/unit/test_0170_fileLocked_xp_win_complete.js => toolkit/mozapps/update/test_svc/unit/test_0172_fileLocked_xp_win_complete_svc.js
rename : toolkit/mozapps/update/test/unit/test_0171_fileLocked_xp_win_partial.js => toolkit/mozapps/update/test_svc/unit/test_0173_fileLocked_xp_win_partial_svc.js
2012-05-22 10:50:04 -04:00
Gervase Markham
82ff7027aa Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Brian R. Bondy
dae0fea4cd Bug 718357 - Do not use new console when browser restarts on Windows. r=jimm 2012-01-19 16:30:05 -05:00
Brian R. Bondy
6829b31d89 Bug 711692 - Various fixes for intermittent failures. r=rstrong. 2011-12-28 21:08:37 -05:00
Brian R. Bondy
48e8c66f8e Bug 708854 - No longer use session ID for work item files. r=rstrong.
--HG--
rename : toolkit/mozapps/update/common/launchwinprocess.cpp => toolkit/mozapps/update/common/updatehelper.cpp
rename : toolkit/mozapps/update/common/launchwinprocess.h => toolkit/mozapps/update/common/updatehelper.h
2012-01-04 23:19:15 -05:00
Brian R. Bondy
367ce94fcc Bug 481815 - Provide a Windows service for silent updates. r=rstrong. 2012-01-04 23:19:14 -05:00
Brian R. Bondy
3a6204ae72 Bug 689277 - Memory leak on low resource situations for Windows software updates. r=rstrong 2011-09-28 09:42:36 -04:00
Ed Morley
1dc65abc0d Bug 652445 - Remove WinCE code (incl Faststart & nsSplashScreenWin) from toolkit; r=dtownsend 2011-04-29 12:38:26 +02:00
Serge Gautherie
dbac3c92eb Bug 508760 - Remove MSVC6 support from the tree; (Iv1) /toolkit/xre/*.cpp.
r+a-2.0=benjamin.
DONTBUILD
2010-12-09 16:43:13 +01:00
Hiroyuki Ikezoe
ff6f77ff64 Bug 495871 - "Memory leak in nsWindowsRestart.cpp" (A patch) [r=doug.turner a=sgautherie.bz] 2009-06-14 01:55:04 -07:00
Hiroyuki Ikezoe
3bbbc13d70 Bug 490274 - Memory leak in toolkit/xre/nsWindowsRestart.cpp; r=benjamin 2009-05-14 16:17:51 +02:00
Vladimir Vukicevic
2f2b2d75af b=477727; bandaid wince firefox restart crash; r=stuart 2009-02-10 15:10:08 -08:00
Brad Lassey
eaa8b5de3a bug 465874 - WinCE Environment Variables Have To Be Passed On Command Line r=bsmedberg 2009-02-05 15:50:44 -08:00
Daniel Holbert
4301671b45 Bug 473236 - Remove executable bit from files that don't need it. (Only changes file mode -- no code changes.) r=bsmedberg 2009-01-21 22:55:08 -08:00
Robert Strong
2db4280254 Bug 459615 - Remove the needElevation param from WinLaunchChild. r=ted.mielczarek, r=jmathies 2009-01-01 16:18:33 -08:00
Brad Lassey
6da6a4efc1 Bug 461858 - windows mobile minor cleanup of xulrunner r=bsmedberg 2008-12-03 08:41:12 -05:00
Robert Strong
3718d0b8b4 Bug 453733 - Software update fails if current directory is root directory (win32 only). r=ted.mielczarek, r=bsmedberg 2008-10-10 16:04:01 -07:00
dougt@meer.net
0069a6f866 XRE build changes for windows mobile. b=420240, r=bsmedberg, a=beltzner 2008-03-05 11:23:44 -08:00
benjamin@smedbergs.us
a1d42219e2 Bug 410610 - Can't open a local HTML file that has accents (special unicode characters) in its filename, r=luser+Neil 2008-01-07 08:38:12 -08:00
dwitte@stanford.edu
84e6172062 update copy_string() to the single-fragment string world, and optimize write() to not return a value. b=282083, r+sr=jst, a=schrep 2008-01-03 16:07:06 -08:00
benjamin@smedbergs.us
fd5b74bf13 Bug 396052 - Firefox fails to start when run from a directory with non-native characters, r=luser sr=neil 2007-12-31 07:15:43 -08:00
rob_strong%exchangecode.com
6264b3f99e Landing of interdependent bugs for Vista support. Bug 354005 Setting the app as the OS default is broken on Vista. r=sspitzer, r=dougt, sr=bsmedberg. Bug 351949 � Automatic Update is not working for Vista users with limited account privilege and UAC (User Account Control) enabled. r=sspitzer, r=rstrong. Bug 354226 � nsPostUpdateWin.js fails to update registry keys / log files after an update has been applied. r=rstrong. 2007-01-30 05:14:50 +00:00
bsmedberg%covad.net
25893b0dca Bug 303599 - Many problems if NtfsDisable8dot3NameCreation set to 1 - r=darin 2005-08-31 17:50:32 +00:00