Commit Graph

455 Commits

Author SHA1 Message Date
Doug Turner
78124a5616 Bug 788122 - Device storage. Add an 'apps' storage type. r=sicking 2012-09-14 09:14:58 -07:00
Ed Morley
10a0b4ea04 Backout e5af3d785252 (bug 791084), 7ad6e513e114, b040fefd038e (bug 788612), 6996c091767d (bug 787299) for introducing new orange 2012-09-14 12:41:29 +01:00
Doug Turner
8c8fed83c5 Bug 791084 - Device storage - Seperate permissions based on storage type. r=bent 2012-09-13 22:37:00 -07:00
Doug Turner
56201d5cea No Bug. Whitespace cleanup. r=me 2012-09-13 22:37:00 -07:00
Doug Turner
b2a0e3d9a4 Bug 788612 - Move bundle handing into nsDOMDeviceStorage to avoid calls to the nsIStringBundleService. r=bent 2012-09-13 22:37:00 -07:00
Doug Turner
bcdf40188d Bug 787299 - Device Storage - Filter out mimetypes during calculation of disk usages. r=bent 2012-09-05 14:30:36 -07:00
Daniel Holbert
7554b18747 Bug 790043: Make nsDeviceStorage consistent on using PRTime for all of its "aSince" / "mSince" vars. r=dougt 2012-09-10 23:52:47 -07:00
Masatoshi Kimura
a3aca9aa1b Bug 788924 - Use "picture", "music", and "videos" special folders for DeviceStorage API. r=dougt 2012-09-07 16:23:01 -04:00
Doug Turner
cf0d2ce52c Bug 774368 - Calling removeMessageListener after test completes. r=smaug 2012-09-06 08:53:25 -07:00
Doug Turner
19352cb5c9 Bug 786922 - Device Storage - use a properties file instead of the mime service. r=bent 2012-09-05 14:30:36 -07:00
Ed Morley
b96b62f2dd Backout ea472ffba523 & ae4a4bfde41e (bug 786922) for causing bug 789008 2012-09-06 11:58:20 +01:00
Doug Turner
bcd286b290 Bug 788588 - Device storage on Windows should use NS_WIN_PERSONAL_DIR. r=blassey
--HG--
extra : rebase_source : 2336d1171ffa9ab177ce35b32836296b1251fea9
2012-09-05 14:30:36 -07:00
Doug Turner
94b0436da7 Bug 786922 - Device Storage - use a properties file instead of the mime service. r=bent
--HG--
extra : rebase_source : 17cd95eadccd4155dd00620586a1d655892f59f9
2012-09-05 14:30:36 -07:00
Doug Turner
139ac99074 Bug 788268 - Device Storage - Convert tests to use public types. r=bent
--HG--
extra : rebase_source : 208751cfe7b68e67d65686d6606766dd5caebf59
2012-09-05 14:30:36 -07:00
Ryan VanderMeulen
441b85ff28 Merge m-c to inbound. r=backedoutbykylehuey.com 2012-09-05 19:10:11 -04:00
Kyle Huey
e85d6a59f5 Back out dougt (bug 788588 et al.) for burning the tree (and some nostalgia). 2012-09-05 15:59:49 -07:00
Doug Turner
2a340fad67 Bug 788588 - Device storage on Windows should use NS_WIN_PERSONAL_DIR. r=blassey 2012-09-05 14:30:36 -07:00
Doug Turner
0c64eca32d Bug 787299 - Device Storage - Filter out mimetypes during calculation of disk usages. r=bent 2012-09-05 14:30:36 -07:00
Doug Turner
f6796f9d1f Bug 786922 - Device Storage - use a properties file instead of the mime service. r=bent 2012-09-05 14:30:36 -07:00
Doug Turner
1f6210bad2 Bug 788268 - Device Storage - Convert tests to use public types. r=bent 2012-09-05 14:30:36 -07:00
Randell Jesup
eedf93a21d Bug 773151: Convert nsCAutoString->nsAutoCString CLOSED TREE r=bsmedberg 2012-09-01 22:35:17 -04:00
Ms2ger
a879438dfd Merge m-c to m-i. 2012-08-31 11:40:15 +02:00
Kyle Huey
c25f8e64ef Bug 687332: Part 2 - Move event handlers off of DOM objects and keep track of them solely in the event listener manager. r=smaug,bz 2012-08-30 20:45:16 -07:00
Doug Turner
78431d63a5 Bug 784763 - freeBytes in stat() result is wrong. r=sicking 2012-08-30 20:15:32 -07:00
Landry Breuil
038741989a Bug 785738 Part 3: use PRTime instead of int64_t where appropriate; r=ehsan 2012-08-30 09:10:35 +02:00
Doug Turner
5cad911e50 Bug 785973 - Device Storage - On gaia, default to use /sdcard (not directories under /sdcard). r=djf 2012-08-30 15:17:39 -07:00
Doug Turner
db59fc5d8f Bug 785955 - Device Storage - Filter out mimetypes based on device storage type. r=sicking 2012-08-30 15:17:38 -07:00
Doug Turner
57d01693cf Bug 783668 - Device Storage - use storage type to filter out change notifications - not the root. r=sicking 2012-08-30 15:17:37 -07:00
Ryan VanderMeulen
1baaa803da Merge m-c to inbound. 2012-09-05 17:52:28 -04:00
Mike Hommey
e3c782edaa Bug 785269 - Replace a few DEPTH and relativesrcdir. r=ted,r=callek 2012-09-05 16:42:09 +02:00
Doug Turner
01a509010b Bug 782352 - Followup -- Harden Remove() such that it doesn't post events for failures. r=khuey 2012-08-28 16:42:40 -07:00
Doug Turner
98f3b52e81 Bug 784404 - Intermittent assertion in dom/devicestorage/test/test_basic.html. v.2 r=bent 2012-08-28 08:39:22 -07:00
Doug Turner
8b379b36a8 Bug 784404 - backout inital patch. r=bent 2012-08-28 08:38:31 -07:00
Ryan VanderMeulen
da44f424f1 Merge m-c to inbound. 2012-08-27 12:51:10 -04:00
Ms2ger
3c576740d3 Merge last PGO-green changeset from m-i to m-c. 2012-08-27 15:02:11 +02:00
Doug Turner
cfa68bef6d Bug 784404 - Intermittent assertion in dom/devicestorage/test/test_basic.html. r=bent 2012-08-26 21:28:10 -07:00
Doug Turner
a19ad5cd0d Bug 782351 - Device Storage - Expose sdcard/volume state flag on stat result followup. If fetching the available disk space fails (due to a path not existing), return zero bytes available. r=khuey 2012-08-26 21:34:04 -07:00
Doug Turner
d51291d281 Bug 784388 - Remove setTimeout from device storage watch tests. r=khuey 2012-08-26 21:33:44 -07:00
Doug Turner
80c32942bc Bug 783593 - Device Storage - Test to ensure onchange notifications go to the right object. r=khuey 2012-08-26 21:33:13 -07:00
Philipp von Weitershausen
5801c8b2ab Bug 776825 - Separate message managers into senders and broadcasters. r=smaug
--HG--
rename : content/base/public/nsIFrameMessageManager.idl => content/base/public/nsIMessageManager.idl
2012-08-27 11:13:02 -03:00
Ehsan Akhgari
0fd9123eac Bug 579517 - Part 1: Automated conversion of NSPR numeric types to stdint types in Gecko; r=bsmedberg
This patch was generated by a script.  Here's the source of the script for
future reference:

function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
       ! -wholename "*security/nss*" \
       ! -wholename "*/.hg*" \
       ! -wholename "obj-ff-dbg*" \
       ! -name nsXPCOMCID.h \
       ! -name prtypes.h \
         -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 PRInt8 int8_t
convert PRUint8 uint8_t
convert PRInt16 int16_t
convert PRUint16 uint16_t
convert PRInt32 int32_t
convert PRUint32 uint32_t
convert PRInt64 int64_t
convert PRUint64 uint64_t

convert PRIntn int
convert PRUintn unsigned

convert PRSize size_t

convert PROffset32 int32_t
convert PROffset64 int64_t

convert PRPtrdiff ptrdiff_t

convert PRFloat64 double
2012-08-22 11:56:38 -04:00
Doug Turner
171cff0cf8 Bug 782391 - Device Storage - Watch should also go through the permission prompt. r=sicking 2012-08-17 19:43:00 -07:00
Doug Turner
225924961e Bug 782352 - Broadcast local io to onchange listeners. r=sicking 2012-08-17 19:43:00 -07:00
Doug Turner
5e4e95095d Bug 777101 - DeviceStorage - Add onchange notifications test. r=khuey 2012-08-17 19:43:00 -07:00
Bobby Holley
e737c4ba76 Bug 783173 - Fix test_ipc implementations to handle mandatory __exposedProps__. r=khuey 2012-08-17 09:21:17 -07:00
Doug Turner
30422c34a1 Bug 782351 - Device Storage - Expose sdcard/volume state flag on stat result followup. If fetching the available disk space fails (due to a path not existing), return zero bytes available. r=khuey
--HG--
extra : rebase_source : 687739cb4fa8071fd9430b350aae3d07ffa41f48
2012-08-16 16:14:38 -07:00
Doug Turner
fde087987b Bug 783086 - DeviceStorage - in OOP apps, the enumerate() method ignores the since argument. r=dhylands
--HG--
extra : rebase_source : d74df06f0641f662f0b258ed832e1698894d7e4e
2012-08-16 16:14:37 -07:00
Doug Turner
2dda588ac7 Bug 782676 - Enable test_stat.html on mac and windows. r=khuey
--HG--
extra : rebase_source : fc7025df9a48d2b942054b511694440a59c241bb
2012-08-16 16:14:37 -07:00
Doug Turner
5c7c45aade Bug 783398 - DeviceStorage makes calls to nsVolumeService from the IOThread. r=dhylands
--HG--
extra : rebase_source : 8f3fef5b349f5810e256f8f5f4b6217854a03518
2012-08-16 16:03:06 -07:00
Gregor Wagner
f79e6cb659 Bug 781355 - Hook up mozBrowser to Permission Manager. r=jlebar 2012-08-15 10:22:30 -07:00
Doug Turner
86465f847a Bug 782354 - seperate sharing state from unavailable state in onchange notification. r=sicking 2012-08-14 08:53:44 -07:00
Doug Turner
838cd1189e Bug 782351 - add volume state to stat() API. r=sicking 2012-08-14 08:53:20 -07:00
Aryeh Gregor
6a9cec29c8 Bug 626472 part 3 - Remove nsnull for good; r=ehsan 2012-08-12 13:43:47 +03:00
Honza Bambas
541453729c Bug 215450: Allow uploading of files greater than 2gb in size. Involves making input streams 64-bit capable. Significant work done by Makoto Kato, finished by Honza Bambas. r=hbambas,bsmedberg,jdrew,sicking 2012-08-10 22:44:11 -04:00
Doug Turner
e657b166a0 Bug 777088 - device Storage - file stat API. r=bent 2012-07-31 12:28:23 -07:00
Doug Turner
9900f40fc3 Bug 773798 - Multi-process support for MediaStorage - Use PBlob. r=bent 2012-08-09 15:41:18 -07:00
Doug Turner
3ad31d24fc Bug 780691 - DeviceStorage - Add onchange notifications for volume state changes. r=sicking 2012-08-09 15:41:18 -07:00
Wes Johnston
fe19c64718 backout c030a8af8abd and dd0c287660e9 CLOSED TREE 2012-08-08 14:07:39 -07:00
Wes Johnston
b259068928 Bug 780718 - Return false from DOMRequestService is preventDefault was called on events. r=sicking 2012-08-08 12:35:15 -07:00
William Chen
edb1043b3e Bug 775377 - Modify nsIContentPermissionRequest to use nsIPrincipal instead of nsIURI. r=dougt+cjones 2012-07-30 10:58:26 -04:00
Wes Johnston
3a191aa6b7 Backout 81a090e983d2, 8236b3579bf3, 2012-08-07 10:08:41 -07:00
Wes Johnston
48eba85f08 Bug 780718 - Return false from DOMRequestService is preventDefault was called on events. r=sicking 2012-08-06 15:26:02 -07:00
Mike Hommey
6173fa297f Bug 774032 bonus - Use @DEPTH@ and @relativesrcdir@ in Makefile.in. r=ted 2012-08-04 20:26:44 +02:00
Mike Hommey
4e998b1d36 Backout changeset 2ef51674316a (bug 774032 bonus) for various Mochitest bustages on a CLOSED TREE 2012-08-04 10:38:41 +02:00
Mike Hommey
17fb6cad2d Bug 774032 bonus - Use @DEPTH@ and @relativesrcdir@ in Makefile.in. r=ted 2012-08-04 08:48:56 +02:00
Landry Breuil
58b3d77b52 Bug 763976. Followup: remove extra comma at end of enum. rs=ms2ger 2012-08-03 15:04:35 +02:00
Doug Turner
c07fc94e51 Bug 779864 - onchange notifications of DeviceStorage should use code generator. r=smaug 2012-08-02 13:25:16 -07:00
Doug Turner
abda96b8c6 Bug 777084 - Stop returning arrays from DeviceStorage.getDeviceStorage(). r=sicking 2012-08-01 23:32:11 -07:00
Doug Turner
debb97d40c Bug 777078 - Remove DeviceStorage .type. r=sicking 2012-08-01 23:32:08 -07:00
Doug Turner
cfccb5022b Bug 763976 - Add onchange notifications to DeviceStorage - IPC - r=khuey 2012-08-01 23:32:04 -07:00
Doug Turner
95b32b3331 Bug 763976 - Add onchange notifications to DeviceStorage. r=khuey 2012-08-01 23:29:34 -07:00
Aryeh Gregor
903f6c9c84 Bug 777292 - Convert incorrect conversions to nsresult and fix named constants; r=ehsan 2012-07-27 16:59:29 +03:00
Aryeh Gregor
e806eeab4f Bug 777292 part 2 - Change all nsnull to nullptr 2012-07-30 17:20:58 +03:00
Doug Turner
eb84bdff4a Bug 774368 - Clear all globals during unload to avoid intermittent test_basic.html exception (can't access dead object at :0). r=jlebar 2012-07-23 09:52:05 -07:00
Joshua Cranmer
4b8f318e78 Bug 773637 - Kill NS_SCRIPTABLE annotations, Part 1: Remove NS_*PARAM annotations. r=ehsan
--HG--
extra : rebase_source : a0b4bc50fece36d9a90fed61431635948bfa33b5
2012-07-06 15:14:07 -05:00
Doug Turner
e1404f76ef Bug 765498 - Device Storage - Gaia - ensure /sdcard is backed by a file system. r=dhylands
--HG--
extra : rebase_source : c36eaa86566f7b7bd6eeefbcbc0622ec99a33816
2012-07-18 11:31:05 -07:00
Doug Turner
8437779089 Bug 761930 - Multi-process support for Device Storage. r=sicking 2012-06-19 16:14:39 -07:00
Doug Turner
0acbbc1c5e Bug 773713 - Stop using profile directory for Device Storage testings. r=jmaher 2012-07-13 12:35:33 -07:00
Doug Turner
6b6c7e2b75 Bug 768654 - Device Storage - Add test that verifies the content written. r=bent 2012-07-13 09:36:19 -07:00
Ryan VanderMeulen
bf22b9314b Backout b3f14a850269, f9d877d78294, and c7335ca109a4 due to build bustage. 2012-07-14 00:01:52 -04:00
Doug Turner
ca640a90d5 Bug 761930 - Multi-process support for Device Storage. r=sicking 2012-06-19 16:14:39 -07:00
Doug Turner
094d2db595 Bug 773713 - Stop using profile directory for Device Storage testings. r=jmaher 2012-07-13 12:35:33 -07:00
Doug Turner
45fd9680d9 Bug 768654 - Device Storage - Add test that verifies the content written. r=bent 2012-07-13 09:36:19 -07:00
Nathan Froyd
a7eb97f896 Bug 370750 - consolidate mochitest files installation; r=glandium
With assistance on the patch from Ms2ger, Waldo, and Mossop.
2012-07-03 16:49:02 -04:00
David Zbarsky
ae718ee1c0 Bug 763350 - Clean up some includes in content/ and dom/ r=smaug 2012-07-01 16:45:59 -07:00
Doug Turner
ac832ab236 Bug 767894 - Device Storage - Move test from dom/tests/mochitest/devicestorage to dom/devicestorage. rs=bent
--HG--
rename : dom/tests/mochitest/devicestorage/Makefile.in => dom/devicestorage/test/Makefile.in
rename : dom/tests/mochitest/devicestorage/devicestorage_common.js => dom/devicestorage/test/devicestorage_common.js
rename : dom/tests/mochitest/devicestorage/test_basic.html => dom/devicestorage/test/test_basic.html
rename : dom/tests/mochitest/devicestorage/test_dotdot.html => dom/devicestorage/test/test_dotdot.html
rename : dom/tests/mochitest/devicestorage/test_enumerate.html => dom/devicestorage/test/test_enumerate.html
rename : dom/tests/mochitest/devicestorage/test_enumerateMultipleContinue.html => dom/devicestorage/test/test_enumerateMultipleContinue.html
rename : dom/tests/mochitest/devicestorage/test_enumerateNoParam.html => dom/devicestorage/test/test_enumerateNoParam.html
rename : dom/tests/mochitest/devicestorage/test_enumerateOptions.html => dom/devicestorage/test/test_enumerateOptions.html
rename : dom/tests/mochitest/devicestorage/test_lastModificationFilter.html => dom/devicestorage/test/test_lastModificationFilter.html
rename : dom/tests/mochitest/devicestorage/test_overwrite.html => dom/devicestorage/test/test_overwrite.html
rename : dom/tests/mochitest/devicestorage/test_sanity.html => dom/devicestorage/test/test_sanity.html
2012-06-27 13:47:36 -07:00
Doug Turner
4326c74162 Bug 767905 - Device Storage - Move editable flag into DeviceStorageFile. r=bent 2012-06-27 13:47:35 -07:00
Ed Morley
b5b2b2ba5a Backout c707e4f15fd4 (bug 767905), cad3e0609835 (bug 767894) for various devicestorage test failures 2012-06-26 16:21:37 +01:00
Doug Turner
321654aee5 Bug 767905 - device storage - Move editable flag into DeviceStorageFile. r=bent 2012-06-26 05:51:24 -07:00
Doug Turner
54afe95ff2 Bug 767894 - Device Storage - move test from dom/tests/mochitest/devicestorage to dom/devicestorage. rs=bent
--HG--
rename : dom/tests/mochitest/devicestorage/Makefile.in => dom/devicestorage/test/Makefile.in
rename : dom/tests/mochitest/devicestorage/devicestorage_common.js => dom/devicestorage/test/devicestorage_common.js
rename : dom/tests/mochitest/devicestorage/test_basic.html => dom/devicestorage/test/test_basic.html
rename : dom/tests/mochitest/devicestorage/test_dotdot.html => dom/devicestorage/test/test_dotdot.html
rename : dom/tests/mochitest/devicestorage/test_enumerate.html => dom/devicestorage/test/test_enumerate.html
rename : dom/tests/mochitest/devicestorage/test_enumerateMultipleContinue.html => dom/devicestorage/test/test_enumerateMultipleContinue.html
rename : dom/tests/mochitest/devicestorage/test_enumerateNoParam.html => dom/devicestorage/test/test_enumerateNoParam.html
rename : dom/tests/mochitest/devicestorage/test_enumerateOptions.html => dom/devicestorage/test/test_enumerateOptions.html
rename : dom/tests/mochitest/devicestorage/test_lastModificationFilter.html => dom/devicestorage/test/test_lastModificationFilter.html
rename : dom/tests/mochitest/devicestorage/test_overwrite.html => dom/devicestorage/test/test_overwrite.html
rename : dom/tests/mochitest/devicestorage/test_sanity.html => dom/devicestorage/test/test_sanity.html
2012-06-26 05:51:24 -07:00
Doug Turner
4dbf3ce990 Bug 766358 - Gaia DCIM has to be at the root of that filesystem. r=fabrice 2012-06-20 01:21:21 -07:00
Ehsan Akhgari
604a4f2747 Bug 758992 - Make the classes which use the XPCOM nsISupports implementation macros final, to avoid the warning about deleting using a pointer to a base class with virtual functions and no virtual dtor (more dom parts); r=bzbarsky
--HG--
extra : rebase_source : e31b077d8556626aa46ac33abbe2997e86ba68df
2012-06-18 21:21:14 -04:00
Ehsan Akhgari
d8df82ca0f Bug 758992 - Make the classes which use the XPCOM nsISupports implementation macros final, to avoid the warning about deleting using a pointer to a base class with virtual functions and no virtual dtor (dom parts); r=bzbarsky 2012-06-14 22:31:55 -04:00
Doug Turner
c4a2936468 Bug 765444 - Update device storage paths for Gonk. r=fabrice 2012-06-16 18:49:26 -07:00
Doug Turner
c2515d0df4 Bug 764604 - Device Storage - crash when using from gaia chrome. Do not dereference null uris. r=bent
--HG--
extra : rebase_source : 54889b39ce65373878de9865ab0603b890fa23ec
2012-06-14 11:29:08 -07:00
Doug Turner
c14f720826 Bug 758273 - Device Storage - enumeration option to filter based on last modification date. r=smaug 2012-06-10 22:50:44 -07:00
Doug Turner
4f0025323f Backed out changeset 401edab3831f - Bug 758273.
--HG--
extra : rebase_source : 8ce201cd3fe6a2d6405be2548927f65dab5cbb39
2012-06-08 21:33:16 -07:00
Doug Turner
62093ffdb7 Bug 758273 - Device Storage - enumeration option to filter based on last modification date. r=smaug 2012-06-08 20:15:04 -07:00
Geoff Lankow
00f3a215c9 Bug 749930 - Replace uses of nsILocalFile with nsIFile (compiled code only); r=bsmedberg 2012-06-06 14:08:30 +12:00
Doug Turner
458d48e5a2 Bug 760643 - Device Storage - Delete isn't working. r=sicking 2012-06-01 13:19:08 -07:00
Doug Turner
bee7978408 Bug 759567 - Add video and music to device storage on gaia. r=sicking 2012-05-30 01:47:12 -07:00
Doug Turner
11f0551967 Bug 758838 - DeviceStorage.enumerate() doesn't work. Factor out prompt interface. r=sicking 2012-05-29 16:12:39 -07:00
Doug Turner
b15cda8253 Bug 717103 - Implement Device Storage. r=sicking 2012-05-21 09:18:30 -07:00
Ed Morley
9f64d2c1c7 Backout 027ed1748c81 (bug 740485) for M3 orange 2012-05-21 19:36:43 +01:00
Doug Turner
a1636519c8 Bug 740485 - Implement Device Storage. r=sicking 2012-05-21 09:18:30 -07:00