Commit Graph

419 Commits

Author SHA1 Message Date
Andrew Sutherland
1adc0f5ef7 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-25 00:43:13 -05:00
Andrew Sutherland
b0b2c340eb Backed out changeset 9110f18c19aa (bug 1125989) 2015-02-24 13:46:27 -05:00
Andrew Sutherland
566180e08d 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
7082ffe2b7 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
490561155f Back out 35e75bce4db4 (bug 1087744) for xpcshell bustage
CLOSED TREE
2015-02-10 23:05:42 -08:00
Christoph Kerschbaumer
01f03b1b49 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
04f5e67841 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
Dhi Aurrahman
5b8f79fc23 Bug 1125766 - Throw proper error types for TextEncoder(), TextDecoder() and TextDecoder.decode(). r=bz 2015-02-04 18:46:26 +07:00
Ehsan Akhgari
4354953b4f Bug 1118486 - Part 1: Use = delete instead of MOZ_DELETE directly; r=Waldo
Most of this patch (with the exception of dom/bindings/Codegen.py) was
generated by the following bash script:

#!/bin/bash

function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
       ! -wholename "*security/nss*" \
       ! -wholename "*/.hg*" \
       ! -wholename "*/.git*" \
       ! -wholename "obj-*" \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -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_DELETE '= delete'
2015-01-08 23:19:05 -05:00
Jon Coppeard
0e23adfc34 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
3962e29eb3 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
Chris Peterson
74a96a4348 Bug 1095883 - Mark toolkit/components directories as FAIL_ON_WARNINGS. r=Mossop 2014-11-08 00:41:17 -08:00
Eric Faust
8c9327a4b7 Bug 611388 - |const| should be block scoped and require an initializer. (r=shu) 2014-10-30 17:27:03 -07:00
Carsten "Tomcat" Book
1ddef21ea8 Backed out changeset 77052db08766 (bug 611388) 2014-10-31 13:12:18 +01:00
Eric Faust
5f99a47be9 Bug 611388 - |const| should be block scoped and require an initializer. (r=shu) 2014-10-30 17:27:03 -07:00
Carsten "Tomcat" Book
059bc8bcd2 Backed out changeset 48099863baec (bug 1075438) for add-on bustage 2014-10-29 12:57:14 +01:00
Gaurav Rai
086f2a8caa 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
d292ee73f1 Bug 1066735 - Remove root b2g and android specific xpcshell manifests, r=chmanchester 2014-10-07 18:18:28 -04:00
Guilherme Goncalves
f499002ee8 Bug 1071976 - Use js_calloc for allocating ArrayBufferContents objects. r=Yoric
--HG--
extra : rebase_source : c3ad82ebe6e12e3340e6564833cc2e5524b900dd
2014-09-23 15:23:00 -04:00
Iaroslav Sheptykin
5ebafccaf7 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
6e187f49f8 Merge m-c to inbound a=merge 2014-09-15 16:41:45 -07:00
Shu-yu Guo
59ccd2fecb Bug 1001090 - Part 5: Fix errors in tests throughout the tree. (r=robcee,gavin) 2014-09-15 16:30:47 -07:00
Paul Rouget
bfba482515 Backed out changeset a6d02cff43d3 (bug 1037235) for breaking WebIDE (bug 1067331)
--HG--
extra : amend_source : a7bfb1e931122663e7c14a7362a849520388e495
2014-09-15 16:23:04 +02:00
Erik Vold
d3d9b5a320 Bug 1037235 - toolkit/loader doesn't check module compatibility r=Mossop 2014-09-09 18:33:55 -07:00
Chris Peterson
d126c3c24f Bug 1063962 - Replace jschar typedef with C++11 char16_t type. r=jandem 2014-07-21 21:43:21 -07:00
Ehsan Akhgari
5bffafdd26 Bug 1061061 - Fix more bad implicit constructors in misc. code; r=bsmedberg 2014-09-02 18:24:24 -04:00
Lynn Tran
7f93484c48 Bug 999748 - Add the user trash directory to OS.Constants.Path. r=yoric 2014-08-26 08:51:24 -04:00
David Rajchenbach-Teller
ce2b9814dc 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
Steve Fink
8b62e3b1a3 Bug 1037358 - Fix up ArrayBufferObject malloc accounting, assigning to correct zone for all types, r=terrence,froydnj,smaug 2014-08-12 16:59:12 -07:00
Nathan Froyd
542214c4df Bug 1044162 - part 1 - make EXTRA_{PP_,}JS_MODULES communicate their installation path; r=mshal
This patch makes EXTRA_{PP_,}JS_MODULES similar in functionality to
TESTING_JS_MODULES: we indicate the path relative to
$(FINAL_TARGET)/modules with an appropriate hierarchy of paths.
2014-07-25 13:40:07 -04:00
Alexandre Poirot
7ea4dd517f 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
Jonathan Griffin
1c5d8636ac Backed out changeset 64586374a208 on a CLOSED TREE 2014-07-22 18:29:57 -07:00
Alexandre Poirot
98afd25e0d 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
Jonathan Griffin
38f79ff899 Backout 4f6d9db92389 for bustage on a CLOSED TREE 2014-07-22 17:55:50 -07:00
Mike Hommey
bc5d6801bb Bug 1041860 - Avoid setting FINAL_LIBRARY to libraries that further use a FINAL_LIBRARY. r=mshal 2014-07-23 08:37:51 +09:00
Alexandre Poirot
37506aa45c Bug 1027242 - Blacklist mulet's failing tests + expose 'mulet' to ini files. r=ahal 2014-07-02 15:40:56 -07:00
Paolo Amadini
1492e70b40 Bug 1023402 - API review for OS.File.setPermissions. r=Yoric
--HG--
rename : toolkit/components/osfile/tests/xpcshell/test_osfile_async_setPerms.js => toolkit/components/osfile/tests/xpcshell/test_osfile_async_setPermissions.js
2014-07-09 14:26:41 +01: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
David Rajchenbach-Teller
eda4343134 Bug 801598 - Making OS.File use the now public PromiseWorker API. r=froydnj 2014-06-28 12:04:00 +02:00
David Rajchenbach-Teller
8a06cee147 Bug 801598 - Exposing OS.File communication mechanism as an independent API. r=froydnj
--HG--
rename : toolkit/components/osfile/modules/_PromiseWorker.jsm => toolkit/components/promiseworker/PromiseWorker.jsm
2014-06-28 12:03:00 +02:00
Ed Morley
736101e1e8 Merge mozilla-central and fx-team 2014-06-24 17:24:53 +01:00
David Rajchenbach-Teller
b0f695d6be Bug 883609 - Making OS.File.removeDir work without options;r=froydnj 2014-06-24 16:51:02 +02:00
Benoit Jacob
210693da34 Bug 1028588 - Fix dangerous public destructors in toolkit/ - r=ehsan 2014-06-23 18:40:02 -04:00
Zack Weinberg
6f9f35438c Bug 1001849: expose general chmod, and chmod-to-umask, support in OS.File. r=yoric 2014-06-20 19:54:06 -04:00
David Rajchenbach-Teller
24fcd57abd Bug 1008944 - Expose AsyncShutdown barriers for OS.File. r=froydnj 2014-06-17 15:11:00 -04:00
Ryan VanderMeulen
028ca01a20 Merge inbound to m-c. a=merge 2014-06-10 00:45:12 -04:00
David Rajchenbach-Teller
43ebf8cc06 Bug 1014484 - Fix 'toString is read-only' errors on B2G. r=froydnj 2014-06-09 08:26:00 -04:00
David Rajchenbach-Teller
f7fd2e76e3 Bug 1011158 - Tighten the lock around OS.File |kill| operation. r=froydnj 2014-06-09 06:25:00 -04:00
Ed Morley
2dd911fd12 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]
f08a7a530c 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