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
Nathan Froyd
0ed717fb8f
Backout 2629257557ff:284be1609a50 (bug 1001842) for debug xpcshell bustage
2014-04-26 13:18:32 -04:00
Zack Weinberg
3f6a9ba557
Bug 1001842, part 2: make umask available via OS.Constants. r=khuey
2014-04-26 10:56:58 -04:00
Nils Maier
86cfc9cc0f
Bug 952997 - Fix OS.File large file support. r=yoric
2014-04-08 03:40:00 +02:00
David Rajchenbach-Teller
b2b8e65b0f
Bug 961665 - Native implementation of OS.File.read, native bits. r=froydnj, r=bz, r=paolo
2014-03-14 10:13:26 -04:00
Peiyong Lin
78963dfcf5
Bug 967507 - [OS.File] Add |path| for error-reporting. r=Yoric
2014-02-24 10:16:01 -05:00
Alessio Placitelli
0d3b6b8869
Bug 924874 - Add OS.File.getAvailableFreeSpace for Windows and Linux. r=Yoric
2014-01-15 02:04:00 -05:00
David Rajchenbach-Teller
3459858562
Bug 952335 - Provide the full path for OS.Constants.Path.libxul on OSX. r=mossop
2014-02-05 13:29:51 -05:00
Masatoshi Kimura
3d9b1531fe
Bug 951028 - Fix NTFS permissions when a file is moved to a different directory. r=yoric,bbondy
2014-01-23 02:33:48 +09:00
David Rajchenbach-Teller
a778a5c39c
Bug 951838 - Add OS.Constants.Path.libSqlite3. r=khuey
2014-01-21 11:29:29 -05:00