Граф коммитов

159 Коммитов

Автор SHA1 Сообщение Дата
Ben Turner dbcfebe3b8 Bug 858680 - Part 4: Perform maintenance on databases while idle, r=janv.
--HG--
extra : rebase_source : 8aa2fd6f34c66bbdf2004915b4da310f6d61751f
2015-05-04 22:56:47 -07:00
Ben Turner b553d50f23 Bug 858680 - Part 2: Add idle notifications to QuotaClient, r=janv.
--HG--
extra : rebase_source : 6797f2d4fdaabef4e5d3b83fbacc09984f447866
2015-04-30 13:46:51 -07:00
Ben Turner dea6eca1b9 Bug 858680 - Part 1: Perform incremental_vacuum on open databases while idle, r=janv.
--HG--
extra : rebase_source : 8bd61176e0b7212c4007a0bc2e88f71740987b00
2015-04-30 13:47:03 -07:00
Ben Turner bc1283c831 Bug 1162176, Part 2. r=janv.
--HG--
extra : rebase_source : 725aa190351df0a82442913d14bfa6e8feb3ef5b
2015-05-19 09:25:50 -07:00
Ryan VanderMeulen 87a9bf8ffd Backed out changesets ba117e790ece and e183bcc18cd3 (bug 1162176) for bustage.
CLOSED TREE
2015-05-19 13:17:01 -04:00
Ben Turner 25e7d5ffdc Bug 1162176, Part 2. r=janv.
--HG--
extra : rebase_source : 86856ee5126379a6a812887df27841db14e88438
2015-05-19 09:25:50 -07:00
Andrea Marchesini 61b9bd0496 Bug 1166231 - Make nsIDOMBlob an empty interface, r=ehsan 2015-05-19 15:36:37 +01:00
Birunthan Mohanathas 735ccdd101 Bug 968520 - Add mozilla::fallible to Fallible{Auto,}TArray::SetLength calls. r=froydnj 2015-05-18 13:50:35 -07:00
Birunthan Mohanathas 1f8d7454e3 Bug 968520 - Add mozilla::fallible to Fallible{Auto,}TArray::SetCapacity calls. r=froydnj 2015-05-18 13:50:34 -07:00
Neil Rashbrook cf42e317ab Bug 1155963 Only allow NS_LITERAL_CSTRING to be used on compile-time literals r=froydnj,ehsan 2015-05-16 09:07:10 +01:00
Wes Kocher 3c714c42eb Backed out changeset 17cfad44e12b (bug 1155963) for breaking b2g builds 2015-05-14 16:35:18 -07:00
Neil Rashbrook ae441fafa2 Bug 1155963 Only allow NS_LITERAL_CSTRING to be used on compile-time literals r=froydnj,ehsan 2015-05-15 00:00:33 +01:00
Andrea Marchesini f4538bb921 Bug 1163387 - Rename FileImpl to BlobImpl, r=ehsan
--HG--
rename : dom/base/MultipartFileImpl.cpp => dom/base/MultipartBlobImpl.cpp
rename : dom/base/MultipartFileImpl.h => dom/base/MultipartBlobImpl.h
2015-05-12 13:11:03 +01:00
Andrea Marchesini 368a198972 Bug 1159401 - Split Blob and File classes, r=bz 2015-05-12 13:09:51 +01:00
Wes Kocher 983fcabeef Backed out 2 changesets (bug 1159401) for b2g build bustage
Backed out changeset adfee1efb1e1 (bug 1159401)
Backed out changeset 70c63c8546e3 (bug 1159401)
2015-05-11 14:54:02 -07:00
Wes Kocher 6b003ab737 Backed out changeset 56e4c68dc3da (bug 1163387) for build bustage CLOSED TREE
--HG--
rename : dom/base/MultipartBlobImpl.cpp => dom/base/MultipartFileImpl.cpp
rename : dom/base/MultipartBlobImpl.h => dom/base/MultipartFileImpl.h
2015-05-11 13:17:58 -07:00
Andrea Marchesini 49a0ee6938 Bug 1163387 - Rename FileImpl to BlobImpl, r=ehsan
--HG--
rename : dom/base/MultipartFileImpl.cpp => dom/base/MultipartBlobImpl.cpp
rename : dom/base/MultipartFileImpl.h => dom/base/MultipartBlobImpl.h
2015-05-11 18:50:54 +01:00
Andrea Marchesini 91a8a35606 Bug 1159401 - patch 1 - Split Blob and File in 2 classes, r=bz 2015-05-11 18:50:50 +01:00
Ryan VanderMeulen 2390c704f8 Backout revisions 4287533203fb and 96a3ebfe09d8 (bug 1159401) for bustage.
CLOSED TREE

--HG--
extra : histedit_source : a6c24f88b9c5a0cbcf2d44189fd359ddb20757b4%2C46613cfc309a9f0531e8c2475ac17877f606f231
2015-05-11 11:43:59 -04:00
Andrea Marchesini 48ecacaa74 Bug 1159401 - patch 1 - Split Blob and File in 2 classes, r=bz 2015-05-11 15:20:06 +01:00
Ben Turner e6f6c77846 Bug 1156611 - Fix Nuwa idle detection for IndexedDB, r=khuey.
--HG--
extra : rebase_source : e548f0c74bad08a3e90ea827e4a05412c3d7d8a7
2015-05-07 12:17:28 -07:00
Andrew McCreight 9e8f4b219e Bug 1152551, part 2 - Fix mode lines in dom/. r=jst 2015-05-03 15:32:37 -04:00
Mike Hommey 924c9eb636 Bug 1134923 - Remove NS_Alloc/NS_Realloc/NS_Free. r=nfroyd
They are kept around for the sake of the standalone glue, which is used
for e.g. webapprt, which doesn't have direct access to jemalloc, and thus
still needs a wrapper to go through the xpcom function list and get to
jemalloc from there.
2015-05-01 09:40:30 +09:00
Ben Turner f2493adb09 Bug 1157573 - Fix transaction rollback assertions for when a transaction was never started, r=janv. 2015-04-23 15:29:15 -07:00
Ben Turner bb30174a4d Bug 1157029 - More changes to bulletproof shutdown of failed connections, r=janv. 2015-04-23 15:08:40 -07:00
Jan de Mooij 103a223716 Bug 1155946 part 1 - Add a mayResolve class hook to optimize objects with resolve hooks better. r=bhackett 2015-04-23 15:51:28 +02:00
Ben Turner 6ee41913fb Bug 1155634 - Move ConnectionPool creation closer to where we actually use it and at a point guaranteed to be after QuotaManager has been started. r=khuey relanding CLOSED TREE 2015-04-22 17:14:44 -07:00
Wes Kocher c2e52c5972 Backed out changeset 89e5f92e26d7 (bug 1155634) for being a possible cause of frequent gij(8) orange CLOSED TREE 2015-04-22 14:06:39 -07:00
Ben Turner bcad3e3bc1 Bug 1155634 - Move ConnectionPool creation closer to where we actually use it and at a point guaranteed to be after QuotaManager has been started. r=khuey
--HG--
extra : rebase_source : 2dfee56a2e028ad05baea9d40db61d6194f93646
2015-04-21 13:46:00 -04:00
Doug Turner 0d32e44fa3 Bug 1156063 - Intermittent application crashed [@ mozilla::dom::indexedDB::::ConnectionPool::Start] in various tests. r=janv 2015-04-21 20:10:50 +02:00
Sylvestre Ledru bc64533d62 Bug 1155652 - Fix two incorrect assertions r=janv
--HG--
extra : rebase_source : 3840224651890682a89142d5e9167caa60faaf6c
2015-04-17 16:06:11 +02:00
Ben Turner bbcf9289d8 Bug 1151242 - Abort version change transactions more eagerly in the event of a crash, r=khuey. 2015-04-14 16:40:51 -07:00
Ryan VanderMeulen b488aec511 Backed out changeset dd10ce7a6b1a (bug 1151242) for bustage.
CLOSED TREE
2015-04-14 13:20:05 -04:00
Ben Turner 6dc226bf92 Bug 1151242 - Abort version change transactions more eagerly in the event of a crash, r=khuey. 2015-04-14 10:02:54 -07:00
Jan Varga 4f7bbfd7c8 Bug 1125102 - Make QuotaManager and FileService to be independent of each other; r=bent 2015-04-14 10:57:41 +02:00
Blake Kaplan b230531d73 Bug 1149420 - Make the IndexedDB permissions prompt work in e10s. r=bent/mfinkle
--HG--
extra : rebase_source : 12476a4d8a84c3a1b751b2522cb01aba28fce8f9
2015-04-10 18:10:00 +02:00
Jan Varga ab82622390 Bug 1150023 - Intermittent browser_940107_home_button_in_bookmarks_toolbar.js | application crashed [@ mozilla::dom::quota::QuotaManager::AbortCloseStoragesForProcess(mozilla::dom::ContentParent *)][@ mozilla::ipc::MessageChannel::NotifyChannelClosed()]; r=bent 2015-04-12 05:41:44 +02:00
Ben Turner 8355d38c6e Bustage fix for bug 1131776, s/moz_malloc/malloc/ on CLOSED TREE 2015-03-31 16:27:36 -07:00
Ben Turner 630eacc28d Bug 1131776 - Use WITHOUT ROWID tables for IndexedDB, r=janv. 2015-02-16 09:48:14 -08:00
Ben Turner 152d030360 Bug 1112702 - Make IndexedDB transactions non-durable by default, r=khuey. 2015-01-25 22:30:09 -08:00
Ben Turner 3075973d0c Bug 1131766 - Use a simpler thread model for IndexedDB transactions, r=khuey. 2014-12-02 12:01:44 -08:00
Ben Turner 04cd5da921 Bug 866846 - Use WAL journal mode for IndexedDB databases, r=janv. 2015-01-24 08:16:26 -08:00
Ben Turner d56515da2a Bug 1112620 - Fix invalidated version change transactions, r=khuey. 2015-03-31 15:35:12 -07:00
Mike Hommey c39e359c7d Bug 1138293 - Use malloc/free/realloc/calloc instead of moz_malloc/moz_free/moz_realloc/moz_calloc. r=njn
The distinction between moz_malloc/moz_free and malloc/free is not
interesting. We are inconsistent in our use of one or the other, and
I wouldn't be surprised if we are mixing them anyways.
2015-03-31 12:32:49 +09:00
Wes Kocher f8f506a4f1 Backed out changeset 8a8e8efa5d38 (bug 866846) 2015-03-30 19:45:59 -07:00
Wes Kocher bfe73734c6 Backed out changeset fdb8d8484cce (bug 1131766) 2015-03-30 19:45:58 -07:00
Wes Kocher cb09a2f4de Backed out changeset 3be650e84eea (bug 1112702) 2015-03-30 19:45:56 -07:00
Wes Kocher 23dabfd770 Backed out changeset 14b9b4827805 (bug 1131776) 2015-03-30 19:45:55 -07:00
Ben Turner ad62e4a206 Bug 1131776 - Use WITHOUT ROWID tables for IndexedDB, r=janv. 2015-02-16 09:48:14 -08:00
Ben Turner ae054a3620 Bug 1112702 - Make IndexedDB transactions non-durable by default, r=khuey. 2015-01-25 22:30:09 -08:00
Ben Turner 8928e75e4d Bug 1131766 - Use a simpler thread model for IndexedDB transactions, r=khuey. 2014-12-02 12:01:44 -08:00
Ben Turner f9c5b7e194 Bug 866846 - Use WAL journal mode for IndexedDB databases, r=janv. 2015-01-24 08:16:26 -08:00
Phil Ringnalda 74fbc95715 Backed out 5 changesets (bug 866846, bug 1131776, bug 1131766, bug 1144806, bug 1112702) on suspicion of causing Windows debug devtools-4 storage crashes
CLOSED TREE

Backed out changeset 142d9ae5826c (bug 1131776)
Backed out changeset 0b4de21b759f (bug 1112702)
Backed out changeset 1b4ead852ae0 (bug 1131766)
Backed out changeset cbd862dd036f (bug 866846)
Backed out changeset 178412a2fe8b (bug 1144806)
2015-03-29 12:55:11 -07:00
Ben Turner 98536af974 Bug 1131776 - Use WITHOUT ROWID tables for IndexedDB, r=janv.
--HG--
extra : rebase_source : 9cba58701e0f6bf4c3d6deb784b5c8340fd895ac
2015-02-16 09:48:14 -08:00
Ben Turner 7d056075df Bug 1112702 - Make IndexedDB transactions non-durable by default, r=khuey.
--HG--
extra : rebase_source : 837613693f18ba7181972d51ea730a112c0b9a25
2015-01-25 22:30:09 -08:00
Ben Turner d454fb295b Bug 1131766 - Use a simpler thread model for IndexedDB transactions, r=khuey.
--HG--
extra : rebase_source : 6f81d1f3f7dd8d9781b5eb5dec6d05f398b49438
2014-12-02 12:01:44 -08:00
Ben Turner 85be2eae91 Bug 866846 - Use WAL journal mode for IndexedDB databases, r=janv.
--HG--
extra : rebase_source : 6bd130ec0bdbeacde6b725ee16736083775f8ca7
2015-01-24 08:16:26 -08:00
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
Andrew McCreight 2b846790d1 Back out Bug 1127201 (part 1) for various problems. 2015-02-06 15:05:08 -08:00
Kan-Ru Chen (陳侃如) 9bdcbebafe Bug 1114890 - Use TabParent::GetFrom everywhere. r=billm 2015-02-05 16:47:32 -05:00
Nicholas Nethercote 5def42d488 Bug 1127201 (part 1) - Let MOZ_ASSERT take a string variable as the second arg. r=Waldo.
ASSERT_UNLESS_FUZZING() (which is defined multiple times!) caused problems due
when __VA_ARGS__ was empty which is most of the time. So I just disallowed the
optional string, which was only used in a small fraction of the occurrences.

I don't particularly like this patch. I'm not convinced its any better than
just removing the nsPrintfCString()s like I did earlier, but I've done it to at
least show what's involved.

--HG--
extra : rebase_source : 10b5bcf8509eaf2fca300b0b8ab1fa130e9f8b8c
2015-02-04 19:42:29 -08:00
Ryan VanderMeulen 6048189ffc Backed out changeset ab7fbaca9fdd (bug 1114890) for being the likely cause of bug 1124046. 2015-02-05 14:35:35 -05:00
Kan-Ru Chen (陳侃如) 0c04d0ee7e Bug 1114890 - Use TabParent::GetFrom everywhere. r=billm 2015-02-05 17:18:22 +08:00
Bill McCloskey c04f106018 Bug 1124933 - Include crash reason when intentionally crashing content process (r=bent) 2015-02-03 09:09:27 -08:00
Mike Hommey a35dbaeebf Bug 1126593 - Add a global fallible instance, so that using fallible works directly, everywhere. r=njn
--HG--
rename : memory/mozalloc/fallible.h => memory/fallible/fallible.h
2015-02-02 09:56:13 +09:00
Ben Turner f25518124c Bug 1125969 - Fix reversed assertion when reading database metadata, r=janv. 2015-01-26 22:25:47 -08:00
Jan Varga f514a5ed5b Bug 1123637 - Remove all code relevant to quota prompts; r=bent,ehsan 2015-01-22 09:40:42 +01:00
Kyle Huey 7c82e6dd0a Bug 1121673: Use move references in IPDL. r=bent 2015-01-16 11:58:52 -08:00
Gijs Kruitbosch 69488b712d Bug 1079355 - indexedDB pref should only apply for content pages, not chrome ones, r=bent 2015-01-05 23:08:12 +00:00
Jan Varga 0e1aa3fc9b Bug 1119462 - Allow unlimited quota for explicit persistent storage; r=bent 2015-01-09 16:56:23 +01:00
Nigel Babu a7238c41c9 Backed out changeset 15830cc2b55b (bug 1119462) for B2G M5 bustage
CLOSED TREE
2015-01-09 10:06:31 +05:30
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
Jan Varga 22ea983a4c Bug 1119462 - Allow unlimited quota for explicit persistent storage; r=bent 2015-01-09 01:24:54 +01:00
Wes Kocher 385a971f77 Backout 977aab16aad3 (bug 1119462) for Android build bustage 2015-01-08 16:15:27 -08:00
Jan Varga 668b9c3a71 Bug 1119462 - Allow unlimited quota for explicit persistent storage; r=bent 2015-01-09 00:31:50 +01:00
Ehsan Akhgari 1889255041 Bug 1118803 - Mark virtual overridden functions as MOZ_OVERRIDE in misc DOM code; r=baku 2015-01-08 08:49:54 -05:00
Ehsan Akhgari 860da94550 Bug 1114999 - Part 2: Apply MOZ_NO_ADDREF_RELEASE_ON_RETURN to all smart pointer arrow operators that can return refcounted objects; r=jrmuizel 2015-01-06 16:30:03 -05:00
Ben Turner 2be368dceb Bug 701634 - Support IndexedDB in Workers, r=khuey+baku. 2014-12-16 22:26:15 -08:00
Ben Turner d4bff69580 Bug 1104853 - Add a null check to an async IDB open operation, r=khuey. 2014-12-16 15:19:19 -08:00
Ehsan Akhgari ebdf8e7c36 Bug 1109746 - Fix more bad implicit constructors in some random code across the tree
--HG--
extra : amend_source : 48ca151cb1ca2193404c65831556051c02093914
2014-12-13 14:17:04 -05:00
Ben Turner 9a1f2f231f Bug 1092311 - Fix IndexedDB profiler markers and logging, r=khuey. 2014-10-15 21:56:52 -07:00
Phil Ringnalda b08d2334ac Back out 58982e7b5c45 (bug 1092311) for asserting 2014-12-10 21:12:40 -08:00
Ben Turner 3e4f22ab2c Bug 1092311 - Fix IndexedDB profiler markers and logging, r=khuey. 2014-10-15 21:56:52 -07:00
Jason Orendorff 92f1bf16c5 Bug 1103368, part 5 - Make Class::getProperty and setProperty nullable instead of needing stub functions. Never store stub functions in JSPropertyDescriptors. r=bhackett.
--HG--
extra : rebase_source : a44070dd6155426ef6026c1575116f90b5fdac0c
extra : amend_source : 8d8fcf05dfd5fdf214a39501663347a6d6b56463
2014-11-22 12:23:39 -06:00
Jason Orendorff acdfa74202 Bug 1103152 - Remove JS_DeletePropertyStub, JS_EnumerateStub, JS_ResolveStub, and JS_ConvertStub. Make five mandatory JSClass hooks optional (nullable). r=bhackett.
--HG--
extra : rebase_source : a349ef612573aff8f87b995a65df94ae56cab13d
extra : amend_source : bbfe549fe0735d8b33ffff66d7eeddcc2ad042d2
2014-12-02 16:56:35 -06:00
Jan Varga 7a79af88ee Bug 771288 - Multiprocess FileHandle support (FileHandle on PBackground); Part 1 - Remove unused stuff; r=bent 2014-12-06 07:31:53 -08:00
Jan Varga 3528192339 Bug 1083927 - IndexedDB: Subdomain Quota Management; r=bent,ehsan
--HG--
rename : dom/indexedDB/test/unit/bug1056939.zip => dom/indexedDB/test/unit/bug1056939_profile.zip
2014-11-28 09:44:12 +01:00
Ben Turner b7fdb34014 Bug 1102570 - Prevent quota operations from running too soon, r=janv. 2014-11-20 15:54:49 -08:00
Ben Turner 88f558f496 Bug 1078438 - Change the way IndexedDB uses SQLite table locks. r=janv. 2014-11-11 10:47:51 -08:00
Jan Varga ea37e37e95 Bug 1095474 - Intermittent /indexedDB/test/test_file_replace.html | application terminated with exit code 1; r=bent 2014-11-13 10:43:22 +01:00
Jan Varga b89edf2131 Bug 1089764 - Treat persistent storage as temporary storage; r=bent 2014-11-04 21:44:56 +01:00
Jan Varga a3073b1b35 Backed out changeset 45dad11b6580 (bug 1089764) for causing bug 1093067 and bug 1093223. 2014-11-03 21:00:52 +01:00
Jan Varga 49c83c236c Bug 1089764 - Treat persistent storage as temporary storage; r=bent 2014-11-01 02:21:25 +01:00
Kyle Huey bad15624f2 Bug 1072773: Add a preference for enabling SQLite's synchronous=FULL mode in IndexedDB. r=bent 2014-10-30 13:18:33 -07:00
Jan Varga 049c6364b8 Bug 1068787 - Quota usage not decreased when removing unsuccessfully copied files; r=bent 2014-10-28 20:06:54 +01:00
Ben Turner 10c76b1dc3 Bug 1085381 - Remove bad assertion, r=khuey. 2014-10-20 17:48:56 -07:00
Jan Varga 33861bc8f2 Bug 1056939 - indexedDB.open fails for certain database names - part 2; r=bent 2014-10-13 21:12:25 +02:00
Ben Turner 2f3343d70b Bug 1056939 - indexedDB.open fails for certain database names - part 1; r=janv 2014-10-13 21:12:12 +02:00
Andrea Marchesini 8f8ec51372 Bug 1047483 - patch 3 - Renaming DOMFile to File, r=ehsan
--HG--
rename : content/base/public/nsDOMFile.h => content/base/public/File.h
rename : content/base/src/nsDOMFile.cpp => content/base/src/File.cpp
2014-10-08 17:15:23 +01:00
Ryan VanderMeulen cd3e8a6f73 Backed out 7 changesets (bug 1047483, bug 1079301, bug 1079335) for webplatform test failures.
Backed out changeset 7d06b68c44d0 (bug 1079335)
Backed out changeset 92030169528e (bug 1079301)
Backed out changeset c09d7f95554a (bug 1047483)
Backed out changeset c199f1057d7e (bug 1047483)
Backed out changeset 18830d07884c (bug 1047483)
Backed out changeset e087289ccfbb (bug 1047483)
Backed out changeset 6238ff5d3ed0 (bug 1047483)

CLOSED TREE

--HG--
rename : content/base/public/File.h => content/base/public/nsDOMFile.h
rename : content/base/src/MultipartFileImpl.cpp => content/base/src/nsDOMBlobBuilder.cpp
rename : content/base/src/MultipartFileImpl.h => content/base/src/nsDOMBlobBuilder.h
rename : content/base/src/File.cpp => content/base/src/nsDOMFile.cpp
2014-10-07 13:16:11 -04:00