Commit Graph

256 Commits

Author SHA1 Message Date
Andrew Sutherland
1946b6892d Bug 1125989 - Avoid OS.File request lossage during worker shutdown, r=yoric
OS.File requests like OS.File.stat would potentially be lost on b2g during
auto-shutdown/auto-killing of the worker thread.  This patch corrects the
queue management so races with killing are not possible.  A test is added that
fails without the fix and passes with it.  See the comments in the test and
test for further details.  Also, the bug is nice.
2015-02-24 10:59:46 -05:00
Christoph Kerschbaumer
aaeeb53bc0 Bug 1087744: Make JS callers of ios.newChannel call ios.newChannel2 in toolkit/ - tests (r=gijs) 2015-02-11 08:51:35 -08:00
Phil Ringnalda
2912bc8d27 Back out 35e75bce4db4 (bug 1087744) for xpcshell bustage
CLOSED TREE
2015-02-10 23:05:42 -08:00
Christoph Kerschbaumer
28d1108bd8 Bug 1087744: Make JS callers of ios.newChannel call ios.newChannel2 in toolkit/ - tests (r=gijs) 2015-02-10 20:49:49 -08:00
Christoph Kerschbaumer
abf865d742 Bug 1087744: Make JS callers of ios.newChannel call ios.newChannel2 in toolkit/components/osfile (r=yoric) 2015-02-10 20:49:36 -08:00
Jon Coppeard
9e76d394fb Bug 1077354 - Transfer buffers to OS.File methods rather than passing a pointer r=froydnj 2015-01-08 11:31:21 +00:00
Gaurav Rai
8f123d522f Bug 1075438 - Removed readTo function from two files and fixed read function to work without readTo.Also removed the test for readTo function from mochi and xpcshell tests. r=Yoric 2014-10-27 06:59:00 +01:00
Carsten "Tomcat" Book
8e87439b26 Backed out changeset 48099863baec (bug 1075438) for add-on bustage 2014-10-29 12:57:14 +01:00
Gaurav Rai
f074feccc2 Bug 1075438 - Removed readTo function from two files and fixed read function to work without readTo.Also removed the test for readTo function from mochi and xpcshell tests. r=Yoric 2014-10-27 06:59:00 -04:00
Andrew Halberstadt
11b824f09b Bug 1066735 - Remove root b2g and android specific xpcshell manifests, r=chmanchester 2014-10-07 18:18:28 -04:00
Iaroslav Sheptykin
4623f4da73 Bug 1023685 - Support writing encoded zero-byte strings in OS.File.writeAtomic. r=yoric
Patch originally created by KeyboardFire <andy@keyboardfire.com>.
2014-09-23 06:50:00 -04:00
Wes Kocher
877afbd303 Merge m-c to inbound a=merge 2014-09-15 16:41:45 -07:00
Shu-yu Guo
40c62f33a5 Bug 1001090 - Part 5: Fix errors in tests throughout the tree. (r=robcee,gavin) 2014-09-15 16:30:47 -07:00
Paul Rouget
7b3c0e4229 Backed out changeset a6d02cff43d3 (bug 1037235) for breaking WebIDE (bug 1067331) 2014-09-15 16:23:04 +02:00
Erik Vold
164a27af2b Bug 1037235 - toolkit/loader doesn't check module compatibility r=Mossop 2014-09-09 18:33:55 -07:00
Chris Peterson
def5e6780e Bug 1063962 - Replace jschar typedef with C++11 char16_t type. r=jandem 2014-07-21 21:43:21 -07:00
Lynn Tran
8f6e130178 Bug 999748 - Add the user trash directory to OS.Constants.Path. r=yoric 2014-08-26 08:51:24 -04:00
David Rajchenbach-Teller
c947ac2597 Bug 1044700 - Make OS.Path.join and OS.File.makeDir more resilient to denormalized paths. r=froydnj 2014-08-20 07:39:00 -04:00
Alexandre Poirot
6188942e57 Bug 1027242 - Blacklist mulet's failing tests + expose 'mulet' to ini files; fix previous bustage on a CLOSED TREE, r=ahal 2014-07-02 15:40:56 -07:00
Paolo Amadini
a14291b5ec Bug 1023402 - API review for OS.File.setPermissions. r=Yoric 2014-07-09 14:26:41 +01:00
Lynn Tran
199e92f91e Bug 1003336 - OS.Constants.Sys.Name should not be "Android" for Firefox OS. r=yoric 2014-07-04 18:20:49 -04:00
Zack Weinberg
77066ba5b1 Bug 1001849: expose general chmod, and chmod-to-umask, support in OS.File. r=yoric 2014-06-20 19:54:06 -04:00
Ryan VanderMeulen
d016dfe3cc Merge inbound to m-c. a=merge 2014-06-10 00:45:12 -04:00
David Rajchenbach-Teller
758de89605 Bug 1014484 - Fix 'toString is read-only' errors on B2G. r=froydnj 2014-06-09 08:26:00 -04:00
David Rajchenbach-Teller
49eeb89e89 Bug 1011158 - Tighten the lock around OS.File |kill| operation. r=froydnj 2014-06-09 06:25:00 -04:00
Ed Morley
87559a7bca Backed out changeset e28e73446d88 (bug 1018169) for Android & B2G xpcshell failures in worker_test_constants.js; CLOSED TREE 2014-06-06 11:59:22 +01:00
kushagra singh[:kushagra]
719cf5c6c1 Bug 1018169 - [OS.File] Write a test to check if OS.Constants is accessible from a worker. r=Yoric 2014-06-05 12:43:00 -07:00
kushagra singh[:kushagra]
4d67dc6ef1 Bug 991883 - [OS.File] Move test_constants from main_test_osfile_async.js to an xpcshell test. r=Yoric 2014-05-26 09:52:00 -04:00
David Rajchenbach-Teller
c624dd2c45 Bug 994951 - Activate OS.File xpcshell tests on B2G. r=froydnj 2014-05-05 06:53:00 -04:00
kushagra singh[:kushagra]
1dda95cfa0 Bug 819068 - Implementing OS.File.queue. r=Yoric 2014-04-12 21:02:06 -04:00
Nils Maier
3481ba4240 Bug 952997 - Fix OS.File large file support. r=yoric 2014-04-08 03:40:00 +02:00
David Rajchenbach-Teller
a548bfc9e1 Bug 961317 - Clean up OS.File shutdown race condition and rework OS.File reset/shutdown. r=froydnj 2014-04-02 11:42:51 -04:00
Ryan VanderMeulen
8c22c8bfd7 Backed out changeset 4eb0d4408fd2 (bug 961317) for Windows xpcshell failures. 2014-04-01 10:46:44 -04:00
David Rajchenbach-Teller
ffae94deb0 Bug 961317 - Clean up OS.File shutdown race condition and rework OS.File reset/shutdown. r=froydnj 2014-04-01 08:57:25 -04:00
David Rajchenbach-Teller
c4922da921 Bug 934283 - Add option to OS.File.makeDir to recursively make directories;r=froydnj 2014-03-28 17:33:36 -07:00
Masatoshi Kimura
d2a0b50165 Bug 974677 - Stop following symlinks when OS.File removes a directory. r=yoric 2014-03-21 12:59:59 +09:00
David Rajchenbach-Teller
a2f7a7adf0 Bug 961665 - Tests for OS.File.read. r=froydnj 2014-03-13 09:52:07 -04:00
Ryan VanderMeulen
8699cfbd9c 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
3e9f2a578b Bug 961665 - Tests for OS.File.read. r=froydnj 2014-03-13 09:52:07 -04:00
Carsten "Tomcat" Book
56828d94d4 Merge mozilla-central to fx-team on a CLOSED TREE 2014-02-25 15:42:32 +01:00
Peiyong Lin
dafb5d4d20 Bug 967507 - [OS.File] Add |path| for error-reporting. r=Yoric 2014-02-24 10:16:01 -05:00
Paolo Amadini
c77e0bbb7d 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
Alessio Placitelli
689c681e73 Bug 924874 - Add OS.File.getAvailableFreeSpace for Windows and Linux. r=Yoric 2014-01-15 02:04:00 -05:00
Paolo Amadini
ed964f7e3c Bug 960962 - OS.File normalization and concatenation issues on Windows. r=Yoric 2014-02-10 19:59:29 +01:00
Gregory Szorc
dffb8830ba 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.
2014-02-06 13:00:20 -08:00
Peiyong Lin
769ef8f6c3 Bug 965196 - [OS.File] Add an option |backupTo| to writeAtomic. r=Yoric 2014-02-06 15:10:08 -05:00
Kay Plößer
cb5fdb2f75 Bug 960046 - [OS.File] makeDir should not fail if the directory is a root. r=Yoric 2014-02-06 10:05:43 -05:00
Peiyong Lin
f5eedaaae8 Bug 827803 - [OS.File] Refine exception transmission across threads. r=Yoric 2014-01-28 08:50:33 -05:00
Gregory Szorc
2ee1ef9cfc 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.
2014-01-24 11:34:30 -08:00
Ed Morley
257aa136ff Backed out changeset ad7fc270445d (bug 963327) for xpcshell failures on a CLOSED TREE 2014-01-27 17:19:01 +00:00