Граф коммитов

125 Коммитов

Автор SHA1 Сообщение Дата
Emilio Cobos Álvarez fffb25b74f Bug 1465585: Switch from mozilla::Move to std::move. r=froydnj
This was done automatically replacing:

  s/mozilla::Move/std::move/
  s/ Move(/ std::move(/
  s/(Move(/(std::move(/

Removing the 'using mozilla::Move;' lines.

And then with a few manual fixups, see the bug for the split series..

MozReview-Commit-ID: Jxze3adipUh
2018-06-01 10:45:27 +02:00
Bob Owen 753c1ba3c8 Bug 1409063: Remove OS.Constants.Path attributes that were added for WebappsInstaller.jsm and are no longer used. r=baku 2018-02-09 14:09:25 +00:00
Andrea Marchesini 8088ca91a2 Bug 1416174 - part 4 - OSFileConstants should use UniquePtr instead of nsAutoPtr, r=smaug 2017-11-10 19:37:13 +01:00
Andrea Marchesini c0c371855c Bug 1416174 - part 3 - moving gPaths to mPaths,r=smaug 2017-11-10 19:27:55 +01:00
Andrea Marchesini 9258fa02c1 Bug 1416174 - part 2 - OSFileConstants as nsIObserver, r=smaug 2017-11-10 19:27:29 +01:00
Andrea Marchesini b06af90b93 Bug 1416174 - part 1 - OSFileConstants must be a singleton, r=smaug 2017-11-10 19:27:03 +01:00
Tom Ritter 6ed6471255 Bug 1409579 Only define PATH_MAX if it is not already defined. r=jdm
MozReview-Commit-ID: 7ntgDp7sj65

--HG--
extra : rebase_source : c107772902a35b8d9f8a4ac9a543ddf3dd832ca4
2017-10-17 18:46:22 -05:00
Andrea Marchesini 97f7266ba3 Bug 1407751 - DefineOSFileConstants should return false if OSFileConstants service is not initialized, r=froydnj 2017-10-13 07:11:40 +02:00
Nicholas Nethercote 6e6ae2ea9b Bug 1382099 - Remove MOZ_WIDGET_GONK from several dom/ subdirectories. r=mccr8,jdm.
As well as the obvious #ifdef stuff, the patch removes
TCPSocket::SetAppIdAndBrowser(), which means
{TCPSocketParent,TCPServerSocketParent}::{GetAppId,GetInIsolatedMozBrowser}()
can also be removed.
2017-07-21 10:52:44 +10:00
Kris Maglione 9c37be53dc Bug 1370027: Part 1 - Cleanly handle a subprocess child being reaped by NSPR. r=aswan
The first time any other code in the parent process uses NSPR (usually via
nsIProcess) to spawn a new process, it spawns a thread to contuously wait for
any child process to exit. This thread winds up reaping our child processes
before we get the chance to wait for them, which leads us to continuously poll
for them to exit.

We don't have a good way to handle this, but checking the error status of
waitpid at least prevents us from failing catastrophically.

MozReview-Commit-ID: 75Z1yUHUmjy

--HG--
extra : rebase_source : db45f781190b6fc84873c32c611134326736a1ba
2017-06-06 16:00:53 -07:00
Andrew McCreight 21f4802365 Bug 1365417 - mozJSComponentLoader::FindTargetObject() is infallible. r=kmag
MozReview-Commit-ID: Iw4ke16CTKg

--HG--
extra : rebase_source : b2c6f5b0dec1849e1bd814ecdcde78b376ffb8ca
2017-05-16 14:27:50 -07:00
Florian Queze e46f34ce1b Bug 1361087 - Loading osfile_shared_allthreads.jsm should not initialize the system-info service (as it does main thread IO on Windows), r=Yoric. 2017-05-03 10:45:15 +02:00
Jan Beich d8d9dc44f5 Bug 981348 - OS.File: glibc on Linux assumes f_bsize == f_frsize, so switch to statfs(). r=Yoric
MozReview-Commit-ID: Rp5ponFOVl

--HG--
extra : rebase_source : 39c8c6b91e5606c80fbb72f61c20e5260abcdf45
2014-03-30 11:25:00 -07:00
Jan Beich cc6d16c6b6 Bug 981348 - OS.File: f_bavail uses f_frsize units according to POSIX. r=Yoric
MozReview-Commit-ID: GU7CbhSsvTa

--HG--
extra : rebase_source : 3111b06d582a2ed0fbf9194c43a438c51751df38
2014-03-08 19:30:00 -08:00
Tooru Fujisawa 2f83147cad Bug 1289050 - Part 8: Use ASCII or UTF8 variant of JS_ReportErrorNumber in non-simple cases. r=jwalden 2016-08-15 23:05:04 +09:00
Tooru Fujisawa 7148db63d3 Bug 1289050 - Part 7: Use ASCII variant of JS_ReportErrorNumber when parameters are all static string. r=jwalden 2016-08-15 19:21:05 +09:00
huangwenjun 4777021274 Bug 1277427 - DOM: Fix consts missing for splice. r=Yoric
---
 dom/system/OSFileConstants.cpp | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
2016-06-02 23:28:36 +08:00
Carsten "Tomcat" Book b2625e3d98 Backed out changeset cd31d578be58 (bug 1277427) for bustage on a CLOSED TREE 2016-06-02 10:14:05 +02:00
huangwenjun cf0bac2734 Bug 1277427 - DOM: Fix constants missing for splice. r=Yoric
---
 dom/system/OSFileConstants.cpp | 6 ++++++
 1 file changed, 6 insertions(+)
2016-06-02 15:37:31 +08:00
Kris Maglione 0b7af888d8 Bug 1269501: Part 3 - Add new Subprocess IPC module. r=aswan r=mhowell rs=bsmedberg
MozReview-Commit-ID: 6vl5xBTBXiF

--HG--
extra : rebase_source : 8b4f6a89704130f1b8cafd625f549443ed97e59c
extra : source : 6438b11898cf5775f446ac0ddcf13f9e8506b26a
2016-05-29 17:15:47 -07:00
Kris Maglione e1323f77d2 Bug 1269501: Part 2 - Add additional libc constants to OS.Constants.libc. r=aswan
MozReview-Commit-ID: H7t3lUvKfY

--HG--
extra : rebase_source : d31542d2798c7d6300263db658e00da927184031
extra : source : 1cbbf940ec35031f3ac435dcef16a0ca5f5a7fc7
2016-05-08 20:34:48 -07:00
Sebastian Hengst cf6ad4521e Backed out 5 changesets (bug 1269501) for failing the added test_subprocess.js on Windows (didn't fold it into the last backout). r=backout
Backed out changeset 3e1d7c5d1a58 (bug 1269501)
Backed out changeset 167e407cb1fc (bug 1269501)
Backed out changeset 6438b11898cf (bug 1269501)
Backed out changeset 1cbbf940ec35 (bug 1269501)
Backed out changeset ed35c5f4d756 (bug 1269501)
2016-05-28 12:38:25 +02:00
Kris Maglione f20c321efc Bug 1269501: Follow-up: Fix build error on Android. r=bustage
MozReview-Commit-ID: EmB0vjvLPzu
2016-05-27 12:43:39 -07:00
Kris Maglione 1f20564e4e Bug 1269501: Part 2 - Add additional libc constants to OS.Constants.libc. r=aswan
MozReview-Commit-ID: H7t3lUvKfY

--HG--
extra : rebase_source : bcbf14796fcaa31097273df81d64173e824bb45e
2016-05-08 20:34:48 -07:00
Boris Zbarsky 2ce6bc7ebf Bug 1255172. Fix unsafe reference gc hazards people snuck into DOM code. r=bkelly 2016-03-10 18:07:28 -05:00
Nathan Froyd 01583602a9 Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
The bulk of this commit was generated with a script, executed at the top
level of a typical source code checkout.  The only non-machine-generated
part was modifying MFBT's moz.build to reflect the new naming.

CLOSED TREE makes big refactorings like this a piece of cake.

 # The main substitution.
find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
    xargs perl -p -i -e '
 s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
 s/nsRefPtr ?</RefPtr</g;   # handle declarations and variables
'

 # Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h

 # Handle nsRefPtr.h itself, a couple places that define constructors
 # from nsRefPtr, and code generators specially.  We do this here, rather
 # than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
 # things like nsRefPtrHashtable.
perl -p -i -e 's/nsRefPtr/RefPtr/g' \
     mfbt/nsRefPtr.h \
     xpcom/glue/nsCOMPtr.h \
     xpcom/base/OwningNonNull.h \
     ipc/ipdl/ipdl/lower.py \
     ipc/ipdl/ipdl/builtin.py \
     dom/bindings/Codegen.py \
     python/lldbutils/lldbutils/utils.py

 # In our indiscriminate substitution above, we renamed
 # nsRefPtrGetterAddRefs, the class behind getter_AddRefs.  Fix that up.
find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
    xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'

if [ -d .git ]; then
    git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
else
    hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
fi

--HG--
rename : mfbt/nsRefPtr.h => mfbt/RefPtr.h
2015-10-18 01:24:48 -04:00
Jan de Mooij bd0285d1bf Bug 1177892 part 6 - Remove UINT_TO_JSVAL. r=evilpie 2015-07-17 11:51:54 +02:00
Birunthan Mohanathas a8939590de Bug 1182996 - Fix and add missing namespace comments. rs=ehsan
The bulk of this commit was generated by running:

  run-clang-tidy.py \
    -checks='-*,llvm-namespace-comment' \
    -header-filter=^/.../mozilla-central/.* \
    -fix
2015-07-13 08:25:42 -07:00
Jan de Mooij 2c2b7af49c Bug 1177892 part 4 - Remove INT_TO_JSVAL. r=evilpie 2015-06-30 21:10:04 -07:00
Jan de Mooij 155b1afd35 Bug 1177892 part 1 - Remove BOOLEAN_TO_JSVAL and STRING_TO_JSVAL. r=evilpie 2015-06-30 11:20:56 -07:00
Ryan VanderMeulen 7483c0563e Backed out changesets ad58c270ce87 and 849151330d60 (bug 1177892) for B2G bustage.
CLOSED TREE
2015-06-30 15:48:11 -04:00
Jan de Mooij 731f441d6e Bug 1177892 part 1 - Remove BOOLEAN_TO_JSVAL and STRING_TO_JSVAL. r=evilpie
--HG--
extra : rebase_source : f7ae63c351c82516e7db48a12c4cfb2048a81805
2015-06-30 11:20:56 -07:00
Jan de Mooij 976586cb5f Bug 1177825 - Remove JSVAL_* constants. r=evilpie 2015-06-29 18:36:44 -07:00
Andrew McCreight 9e8f4b219e Bug 1152551, part 2 - Fix mode lines in dom/. r=jst 2015-05-03 15:32:37 -04:00
Vaibhav Pradeep Bhosale 758e801c20 Bug 1136110 - Define OS.Constants.Sys.bits. r=yoric 2015-02-26 19:23:20 +05:30
Ehsan Akhgari 883849ee32 Bug 1145631 - Part 1: Replace MOZ_OVERRIDE and MOZ_FINAL with override and final in the tree; r=froydnj
This patch was automatically generated using the following script:

function convert() {
echo "Converting $1 to $2..."
find . \
       ! -wholename "*/.git*" \
       ! -wholename "obj-ff-dbg*" \
         -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 MOZ_OVERRIDE override
convert MOZ_FINAL final
2015-03-21 12:28:04 -04:00
Ganesh Sahukari 4b15c2aa09 Bug 1022816 - OS.File will now be able to change the readOnly, hidden, and system file attributes on Windows. r=paolo 2015-03-13 15:51:53 +00:00
Jan de Mooij db18ff3df9 Bug 1137523 - Unprefix most js_* functions. r=bhackett CLOSED TREE 2015-02-27 16:08:15 +01:00
Tom Schuster 324fce84c8 Bug 1127494 - Remove proto parameter from JS_DefineObject. r=Waldo,bz 2015-02-04 22:50:17 +01:00
Harshil Goel ec74dc79d7 Bug 1072922 - Add libc constants for flock structure type. r=Yoric 2014-11-21 07:50:41 +05:30
Lynn Tran 7f93484c48 Bug 999748 - Add the user trash directory to OS.Constants.Path. r=yoric 2014-08-26 08:51:24 -04:00
Lynn Tran 029d85bf33 Bug 1003336 - OS.Constants.Sys.Name should not be "Android" for Firefox OS. r=yoric 2014-07-04 18:20:49 -04:00
Benoit Jacob ec742680c8 Bug 1028588 - Fix dangerous public destructors in the rest of dom/ - r=ehsan 2014-06-23 15:56:07 -04:00
Birunthan Mohanathas 19bebbc68d Bug 869836 - Part 2: Use AppendLiteral instead of `Append(NS_LITERAL_STRING(...))`. r=ehsan 2014-05-22 06:48:50 +03:00
Masatoshi Kimura 002ce1edc1 Bug 1007797 - Fixup tests. r=yoric 2014-05-12 22:46:50 +09:00
Marco Castelluccio 5089d6cb10 Bug 1001948 - Attempt to remove files more than once in the Windows cleanup functions in toolkit/webapps/ tests. r=myk,Yoric,tabraldes 2014-05-08 20:06:26 +02:00
David Rajchenbach-Teller d6f5da42b5 Bug 994951 - Activate OS.File xpcshell tests on B2G. r=froydnj 2014-05-05 06:53:00 -04:00
Jon Coppeard 1216544376 Bug 959787 - Handlify remaining JS APIs r=terrence r=bz r=bholley 2014-04-30 10:10:33 +01:00
Birunthan Mohanathas 5f1fde8824 Bug 900908 - Part 3: Change uses of numbered macros in nsIClassInfoImpl.h/nsISupportsImpl.h to the variadic variants. r=froydnj 2014-04-27 03:06:00 -04:00
Zack Weinberg 06e34322cf Bug 1001842, part 2: make umask available via OS.Constants. r=khuey sr=bz 2014-04-26 10:56:58 -04:00