Commit Graph

393 Commits

Author SHA1 Message Date
David Rajchenbach-Teller
1fcba1f332 Bug 961665 - Tests for OS.File.read. r=froydnj 2014-03-13 09:52:07 -04:00
David Rajchenbach-Teller
1e68a2340f Bug 961665 - Native implementation of OS.File.read, js code. r=froydnj 2014-03-14 10:13:50 -04:00
David Rajchenbach-Teller
f239dd5dfa Bug 961665 - Native implementation of OS.File.read, native bits. r=froydnj, r=bz, r=paolo 2014-03-14 10:13:26 -04:00
Ryan VanderMeulen
a2a03608f4 Backed out changesets c6ca1aa3887a, d741e117a033, 1fd26e822e73, and 720962c9f993 (bug 961665) for build bustage and xpcshell failures. 2014-03-13 10:32:57 -04:00
David Rajchenbach-Teller
bc83b73608 Bug 961665 - Tests for OS.File.read. r=froydnj 2014-03-13 09:52:07 -04:00
David Rajchenbach-Teller
5be8237303 Bug 961665 - Native implementation of OS.File.read, js code. r=froydnj 2014-03-13 09:51:50 -04:00
David Rajchenbach-Teller
b1566a0457 Bug 961665 - Native implementation of OS.File.read, native bits. r=froydnj, r=bz, r=paolo 2014-03-13 09:51:22 -04:00
Wes Kocher
425e19c05e Backed out changeset 9a5b7ed8dae4 (bug 965527) on a CLOSED TREE 2014-03-11 13:38:25 -07:00
Alexandre Lissy
d4991c3bec Bug 973538 - Throw an exception on undefined values for OS.Path.join() and OS.Path.winGetDrive(). r=Yoric 2014-02-17 12:02:26 +01:00
David Rajchenbach-Teller
15d1e584d2 Bug 965527 - Harden OS.File shutdown flag. r=froydnj 2014-03-06 12:50:28 -05:00
Carsten "Tomcat" Book
df93062b9a Merge mozilla-central to fx-team on a CLOSED TREE 2014-02-25 15:42:32 +01:00
Peiyong Lin
adc24dddf9 Bug 967507 - [OS.File] Add |path| for error-reporting. r=Yoric 2014-02-24 10:16:01 -05:00
David Rajchenbach-Teller
732f31922d Bug 965527 - Further AsyncShutdown error reporting for OS.File. r=yoric 2014-02-24 10:15:47 -05:00
Paolo Amadini
b0eebd716a Bug 973931 - OS.File.makeDir should not fail if the directory is a root in the format "D:". r=Yoric 2014-02-24 22:25:29 +01:00
David Rajchenbach-Teller
de43bcbdd7 Bug 957123 - Better AsyncShutdown error reporting for OS.File. r=froydnj 2014-02-07 10:52:47 -05:00
Alessio Placitelli
ddc24c0c2c Bug 924874 - Add OS.File.getAvailableFreeSpace for Windows and Linux. r=Yoric 2014-01-15 02:04:00 -05:00
Paolo Amadini
c974a06d55 Bug 960962 - OS.File normalization and concatenation issues on Windows. r=Yoric 2014-02-10 19:59:29 +01:00
Gregory Szorc
5f7ff500d3 Bug 969021 - Part 1: Consolidate moz.build data into parent moz.build files; r=ted
Many moz.build files define things that could be defined in parent
moz.build files. Keeping the number of moz.build files low helps with
build times due to less I/O and fewer directories traversed.

This patch eliminates a lot of moz.build files by moving their content
into parent moz.build files.

--HG--
extra : rebase_source : 0cfdf2697d10532e5b03cd27fbaadb41f42b837c
extra : amend_source : 0119d4e4881217f105e0e4ba1dfa9c8f7295f3e9
extra : histedit_source : eb49e62c67af2005fdc08d9c9a07f56bee98d558%2C50951e960e450f9b0e48fc7e8ec369d8666a63b0
2014-02-06 13:00:20 -08:00
Peiyong Lin
6d3ae7dcf8 Bug 964735 - Convert libc into Library to make it link lazily. r=Yoric 2014-02-07 10:37:21 -05:00
Peiyong Lin
5a907508c4 Bug 965196 - [OS.File] Add an option |backupTo| to writeAtomic. r=Yoric 2014-02-06 15:10:08 -05:00
Kay Plößer
2572b6aeee Bug 960046 - [OS.File] makeDir should not fail if the directory is a root. r=Yoric 2014-02-06 10:05:43 -05:00
Tareq Khandaker
a959e8f491 Bug 961050 - Reference to undefined property options.compression. r=Yoric 2014-02-05 13:39:48 -05:00
David Rajchenbach-Teller
ead1acaf24 Bug 960509 - Load libSystem for MacOS X 32 bit. r=glandium 2014-01-28 08:50:34 -05:00
Peiyong Lin
61fcc9f3f4 Bug 827803 - [OS.File] Refine exception transmission across threads. r=Yoric 2014-01-28 08:50:33 -05:00
Gregory Szorc
bc5249e654 Bug 963327 - Improve profile-dependent handling of OS.Constants.Path; r=Yoric
Many properties in OS.Constants.Path are dependent on the profile being
available. This patch improves their handling.

Previously, we had some repeated and boilerplate code for making
OS.Constants.Paths.<prop> a lazy getter. This patch eliminates the
boilerplate by iterating over the properties that need to be lazy
getters.

AppData and UAppData are now lazy getters.

test_profiledir.js has been rolled into test_path_constants.js.

test_path_constants.js now emits a warning when a comparison doesn't
test anything. This should help identify ineffective tests going
forward.

--HG--
extra : rebase_source : d142c5fc78eb894f78f9ac8745de3413e4919f09
2014-01-24 11:34:30 -08:00
Ed Morley
64d30f1fa3 Backed out changeset ad7fc270445d (bug 963327) for xpcshell failures on a CLOSED TREE 2014-01-27 17:19:01 +00:00
Gregory Szorc
cd7a42e4a6 Bug 963327 - Improve profile-dependent handling of OS.Constants.Path; r=Yoric
Many properties in OS.Constants.Path are dependent on the profile being
available. This patch improves their handling.

Previously, we had some repeated and boilerplate code for making
OS.Constants.Paths.<prop> a lazy getter. This patch eliminates the
boilerplate by iterating over the properties that need to be lazy
getters.

AppData and UAppData are now lazy getters.

test_profiledir.js has been rolled into test_path_constants.js.

test_path_constants.js now emits a warning when a comparison doesn't
test anything. This should help identify ineffective tests going
forward.

--HG--
extra : rebase_source : 971e2bd5f313de2b25090a67d20e101c859f4f4c
2014-01-24 11:34:30 -08:00
Ryan VanderMeulen
a88518f0d8 Merge fx-team to m-c. 2014-01-22 15:32:22 -05:00
Masatoshi Kimura
7a1128e69c 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
9d3f6ec799 Bug 916076 - Tests for OS.File telemetry. r=froydnj 2014-01-22 12:21:44 -05:00
David Rajchenbach-Teller
141d8822da Bug 916076 - Add telemetry for OS.File. r=froydnj 2014-01-22 12:21:43 -05:00
Ryan VanderMeulen
4d0972315d Merge inbound to m-c. 2014-01-13 17:44:24 -05:00
Sumit Agrawal
28be2ce286 Bug 958354 - OS.Constants.Path should expose UAppData. r=Yoric 2014-01-13 08:45:20 -05:00
Ryan VanderMeulen
e7839724f1 Backed out changeset 13bea55207f2 (bug 952997) for xpcshell orange. 2014-01-10 11:33:35 -05:00
David Rajchenbach-Teller
7b253e1d2b Bug 854169 - OS.File.{read, writeAtomic} support for lz4. r=froydnj 2014-01-09 17:10:05 +01:00
David Rajchenbach-Teller
d68faa537a Bug 854169 - Lazy loading for lz4 bindings. r=froydnj 2014-01-09 17:10:04 +01:00
David Rajchenbach-Teller
9a4951b7bc Bug 854169 - Move OS.File's normalizeToPointer() to SharedAll. r=froydnj 2014-01-09 17:10:03 +01:00
Nils Maier
15b25aceee Bug 952997 - Fix OS.File large file support. r=Yoric 2014-01-10 08:15:37 -05:00
David Rajchenbach-Teller
756b05fa7c Bug 878791 - Link OS.File to 'libc.so' and 'a.out' without further niceties. r=glandium 2014-01-13 09:09:30 -05:00
Dustin J. Mitchell
d33714f84c Bug 803188 - Support converting between file paths and file:/// uris in OS.File. r=Yoric 2013-12-16 14:55:37 -05:00
Peiyong Lin
ce5657ade4 Bug 951202 - Change bindings declared with declareLazyFFI to be enumerable. r=Yoric
--HG--
extra : rebase_source : 1f5260a3a579f09d30203d010cceaba0cf22cc2e
2013-12-17 16:29:17 -05:00
Fabrice Desré
eca578071f Bug 944859 - osfile_async_worker.js worker is never shut down in the parent process. r=yoric 2013-12-03 09:48:01 -08:00
David Rajchenbach-Teller
0d38333825 Bug 935792 - ignoreAbsent flag for removeDir() doesn't default to true as intended/documented. r=froydnj 2013-11-26 14:21:03 -05:00
David Rajchenbach-Teller
20f3d0019b Bug 941565 - Fix OS.Constants.Path.libxul on Android. r=glandium 2013-11-25 09:32:29 -05:00
Bill McCloskey
7fc205c201 Bug 940217 - Fix error report about StopIteration promise (r=Yoric) 2013-11-20 13:35:25 -08:00
Jan Beich
b02d579784 Bug 939527 - Make OS.File.stat() use correct type for file size. r=Yoric 2013-11-19 14:58:00 -05:00
Mike Hommey
bb6779efe3 Bug 939044 - Remove most definitions of MODULE. r=mshal 2013-11-19 11:47:39 +09:00
Avinash Kundaliya
964318373f Bug 897023 - [OS.File] Be smarter with functions that can fail with becauseAbsent/becauseExists. r=yoric 2013-11-15 21:46:59 -05:00
Ryan VanderMeulen
b48344ffb2 Backed out changeset 3232989e79e7 (bug 897023) for mochitest-other failures. 2013-11-11 10:55:36 -05:00
Avinash Kundaliya
d4a1c11a35 Bug 891110 - Detecting attempts to pass undefined in declareFFI. r=Yoric 2013-11-11 09:18:22 -05:00
Avinash Kundaliya
77fdb11ee6 Bug 897023 - [OS.File] Be smarter with functions that can fail with becauseAbsent/becauseExists. r=Yoric 2013-11-11 09:02:13 -05:00
Martin Husemann
3cc5f635f2 Bug 935962: [OS.File] create a special type for stat.st_size and deal with NetBSD libc symbol names. r=yoric 2013-11-09 08:36:19 +01:00
Kyle Huey
d00c5443e9 Bug 919885: Move Worker to WebIDL and thread-agnostic event dispatch. r=bent,bz 2013-11-05 22:16:24 +08:00
Felix H. Dahlke
69d6bb08b8 Bug 921229 - Remove files with the read-only flag set. r=yoric 2013-10-29 09:27:01 +01:00
Chris Manchester
3ec5abbd70 Bug 885480 - Set becauseNoSuchFile on windows for osfile errors produced as a result of no such directory. r=yoric 2013-10-29 17:35:31 -04:00
Nils Maier
ef94a9ccf4 Bug 924916: Part 4 - xpcshell tests for OS.File.setDates(). r=yoric 2013-10-28 05:42:00 +00:00
Nils Maier
3add4b86d7 Bug 924916: Part 3 - Provide async OS.File.setDates() API for main-thread. r=yoric 2013-10-28 05:41:00 +00:00
Nils Maier
441f733830 Bug 924916: Part 2 - Implement OS.File.setDates() for Windows. r=yoric 2013-10-28 05:40:00 +00:00
Nils Maier
d07967b696 Bug 924916: Part 1 - Implement OS.File.setDates() for Unix. r=yoric 2013-10-28 05:40:00 +00:00
Nils Maier
7631e2c127 Bug 912457 - Expose async |flush()| in OS.File. r=yoric 2013-10-27 19:03:25 -04:00
Nils Maier
a584ba78d8 Bug 924858 - Part 2: Implement |append| mode for OS.File.open on Windows. r=yoric 2013-10-27 08:03:35 -04:00
Nils Maier
887a63c2e8 Bug 924858 - Part 1: Add |append| mode flag to OS.File.open on Unix. r=yoric
To match previous behavior, this mode flag will default to |true|.
2013-10-27 08:03:16 -04:00
David Rajchenbach-Teller
4b8e45feb5 Bug 927560 - Shutdown osfile_async_worker.js, companion tests;r=froydnj 2013-10-17 06:57:00 +01:00
David Rajchenbach-Teller
2762b0b135 Bug 927560 - Shutdown osfile_async_worker.js when it's not needed;r=froydnj 2013-10-24 05:04:00 +01:00
Nils Maier
15fba679b5 Bug 928239 - Fix pump_userland fallback in OS.File.copy. r=yoric 2013-10-21 06:50:00 +01:00
David Rajchenbach-Teller
ad3c02522a Bug 801376 - OS.File loads symbols lazily;r=froydnj 2013-10-22 02:43:00 +01:00
David Rajchenbach-Teller
7384729521 Bug 904652 - Port osfile_{win, unix}_allthreads.jsm to a module loader. r=froydnj 2013-10-16 11:15:04 -04:00
Marcos Aruj
be4277a463 Bug 866571 - [OS.File] Add createUnique method. r=yoric 2013-10-16 08:21:39 -04:00
Ryan VanderMeulen
8a83000296 Backed out changeset 03d629375717 (bug 904652) for suspicion of causing mass test bustage.
CLOSED TREE
2013-10-15 15:22:13 -04:00
Nils Maier
56a629951e Bug 926691 - OS.File API must preverse |bytes| options to .readTo() and .write(). r=yoric 2013-10-15 14:05:57 -04:00
David Rajchenbach-Teller
a3a8f9f6cf Bug 904652 - Port osfile_{win, unix}_allthreads.jsm to module loader. r=froydnj 2013-10-15 13:28:26 -04:00
Ryan VanderMeulen
e9e247b525 Backed out 2 changesets (bug 915757, bug 919885) for frequent Android Armv6 mochitest-8 crashes.
Backed out changeset 04610078280c (bug 915757)
Backed out changeset db9190b3ce60 (bug 919885)
2013-10-14 14:38:54 -04:00
Kyle Huey
09462c8153 Bug 919885: Move Worker to WebIDL and thread-agnostic event dispatch. r=bent,bz 2013-10-14 19:58:05 +08:00
Sankha Narayan Guria
350b7b56ed Bug 865387 - Handle the read-ahead flag operation on Linux. r=Yoric 2013-10-11 23:13:48 +05:30
Sankha Narayan Guria
a2bab79dcb Bug 865387 - Changes to |options| and |clone| in OS.File. r=Yoric 2013-10-12 12:44:52 +05:30
David Rajchenbach-Teller
e403afd06c Bug 918364 - Make exceptions more meaningful in OS.File. r=froydnj 2013-10-11 11:50:52 -04:00
Marco Castelluccio
57cb4e91c7 Bug 923540 - Add a function to recursively remove directories. r=Yoric 2013-10-10 10:59:49 -04:00
Ms2ger
105ce73cfa Bug 922268 - Remove empty makefiles; r=gps 2013-10-03 09:10:00 +02:00
Ryan VanderMeulen
4dd576fb2f Merge m-c to inbound. 2013-09-30 16:51:06 -04:00
Ryan VanderMeulen
40233fbb80 Merge fx-team to m-c.
--HG--
rename : mobile/android/base/UpdateServiceHelper.java => mobile/android/base/updater/UpdateServiceHelper.java
2013-09-30 16:18:53 -04:00
Bill McCloskey
ef2dd13f13 Bug 885615 - Fix "reference to undefined property exn.stack" (r=Yoric) 2013-09-30 12:24:40 -07:00
Gregory Szorc
cc1da2c22a Bug 920223 - Part 2: Mass convert MOCHITEST_CHROME_FILES to manifests; rs=Ms2ger 2013-09-30 09:52:01 +02:00
Marco Castelluccio
9245146ce3 Bug 920686 - [OS.File] Add some constants to OS.Constants.Path for WebappsInstaller.jsm. r=yoric 2013-09-30 10:59:41 -04:00
Ed Morley
038cae0901 Backed out changeset 68b6b152f51a (bug 920223) 2013-09-30 12:50:09 +01:00
Gregory Szorc
483a776413 Bug 920223 - Part 2: Mass convert MOCHITEST_CHROME_FILES to manifests; rs=Ms2ger 2013-09-30 09:52:01 +02:00
David Rajchenbach-Teller
22df70041a Bug 845190 - Reactivate tests blocked by bug 888347. r=yoric 2013-09-25 11:43:48 -04:00
Errietta Kostala
ea2e6432b7 Bug 918354 - Remove outer try/catch in osfile_async_worker.js. r=yoric 2013-09-23 14:41:01 +01:00
Brandon Benvie
bcc8ac064f Bug 919769 - Make OS.Path.normalize correctly handle forward slashes on Windows. r=yoric 2013-09-24 10:59:37 -07:00
David Rajchenbach-Teller
3346eae372 Bug 910827 - Setting OS.File DEBUG will not automatically start the OS.File thread. r=froydnj 2013-09-23 12:18:28 -04:00
David Rajchenbach-Teller
7f37ec4ee0 Bug 891300 - Porting ospath_* to the module loader. r=froydnj
--HG--
rename : toolkit/components/osfile/modules/ospath_unix_back.jsm => toolkit/components/osfile/modules/ospath_unix.jsm
rename : toolkit/components/osfile/modules/ospath_win_back.jsm => toolkit/components/osfile/modules/ospath_win.jsm
2013-09-19 08:55:53 -04:00
Ryan VanderMeulen
d1320d9844 Merge m-c to fx-team on a CLOSED TREE. 2013-09-17 20:27:03 -04:00
David Rajchenbach-Teller
3fcdd42931 Bug 916687 - Leaked directory detection, increasing test timeout. r=yoric 2013-09-17 11:39:02 -04:00
Cameron McCormack
4b94ea36d5 Bug 910300 - Silence "reference to undefined property options.bytes" warning. r=dteller 2013-09-17 17:53:29 +10:00
David Rajchenbach-Teller
b8563aa5a9 Bug 913899 - Plugging OS.File to AsyncShutdown;r=froydnj 2013-09-14 18:48:39 +02:00
David Rajchenbach-Teller
deaf1d6632 Bug 913899 - Plugging OS.File to AsyncShutdown (tests);r=froydnj 2013-09-14 18:48:37 +02:00
David Rajchenbach-Teller
9965fd51aa Bug 874435 - Round dates given by stat() up/down more generously in tests. r=froydnj 2013-09-06 09:19:05 -04:00
Mike Hommey
f1cf3b4238 Bug 912293 - Remove now redundant boilerplate from Makefile.in. r=gps 2013-09-05 09:01:46 +09:00
David Rajchenbach-Teller
6b916cc2c6 Bug 874425 - Ensure that durationMs >= 0. r=yoric 2013-08-30 08:15:13 -04:00
Ryan VanderMeulen
c584fca277 Backed out changesets 19dd0130c6ae and d986a560fbdd (bug 865387) for Android test failures on a CLOSED TREE. 2013-08-26 15:02:15 -04:00
Sankha Narayan Guria
c7a8640270 Bug 865387 - Handle the read-ahead flag operation on Linux. r=Yoric 2013-08-26 20:42:31 +05:30