Nicholas Nethercote
b71747b2ac
Bug 1299727 - Rename NS_WARN_IF_FALSE as NS_WARNING_ASSERTION. r=erahm.
...
The new name makes the sense of the condition much clearer. E.g. compare:
NS_WARN_IF_FALSE(!rv.Failed());
with:
NS_WARNING_ASSERTION(!rv.Failed());
The new name also makes it clearer that it only has effect in debug builds,
because that's standard for assertions.
--HG--
extra : rebase_source : 886e57a9e433e0cb6ed635cc075b34b7ebf81853
2016-09-01 15:01:16 +10:00
Kan-Ru Chen
b6d880aca1
Bug 1297276 - Rename mfbt/unused.h to mfbt/Unused.h for consistency. r=froydnj
...
The patch is generated from following command:
rgrep -l unused.h|xargs sed -i -e s,mozilla/unused.h,mozilla/Unused.h,
MozReview-Commit-ID: AtLcWApZfES
--HG--
rename : mfbt/unused.h => mfbt/Unused.h
2016-08-24 14:47:04 +08:00
Kan-Ru Chen
0dbfe2dbcc
Bug 1264642 - Part 5. Make SerializedStructuredClone{Read,Write}Info use SerializedStructuredCloneBuffer. r=baku
...
MozReview-Commit-ID: KUz3E5Sw5W3
2016-08-23 00:40:47 +08:00
Bevis Tseng
f3cc098cd9
Bug 1275518 - Add null pointer check before accessing DatabaseInfo::mConnection. r=janv
...
--HG--
extra : rebase_source : 725bc0d4229624de7078195ffb56c7dfc49bbab3
2016-08-17 16:13:50 +08:00
Andrea Marchesini
a183983968
Bug 1264053 - MessagePort should support transferable objects in multi-e10s, r=sfink, r=smaug, r=jorendorff, r=janv
2016-07-21 15:29:42 +02:00
Honza Bambas
938cfdf0c1
Bug 1293327 - Take file protocol handler service directly in indexedDB. r=janv
...
--HG--
extra : amend_source : f705a56379b9d1f27bad063949deacb3f7b2c01b
2016-08-11 22:13:17 -04:00
Bevis Tseng
34652d2187
Bug 1271506 - Support of IDBObjectStore.getKey. r=khuey
2016-07-21 16:31:59 +08:00
Bevis Tseng
efa7337a9a
Bug 1271505 - Support of IDBCursor.continuePrimaryKey. r=khuey
2016-07-26 15:26:50 +08:00
Bevis Tseng
c36eaf728e
Bug 1289375 - Rollback incomplete change of preloading cursors for IndexedDB. r=khuey
2016-07-26 18:51:19 +08:00
Jan de Mooij
c7e88a5ad8
Bug 1286795 part 6 - Replace JS_NewRuntime/JS_DestroyRuntime with JS_NewContext/JS_DestroyContext. r=luke,bz
2016-07-23 19:54:19 +02:00
Carsten "Tomcat" Book
8428cd56e3
merge mozilla-inbound to mozilla-central a=merge
2016-07-20 11:20:15 +02:00
Andi-Bogdan Postelnicu
956584cb73
Bug 1287756 - prevent assignment in assert expression for |mCurrentMaintenance|.r=janv
...
MozReview-Commit-ID: 8p72mQrKmWx
--HG--
extra : rebase_source : 7ff9956ddc08fed0b602455d37c2b088e21e70a5
2016-07-19 21:18:03 +03:00
Kyle Huey
18aef1bac2
Bug 1285327: Micro-optimize some IDB refcounting. r=froydnj
2016-07-20 11:46:48 +08:00
Fabrice Desré
2d7ccfe630
Bug 1286190 - Get rid of MOZ_CHILD_PERMISSIONS r=bz
...
MozReview-Commit-ID: Lx2kozynptu
--HG--
extra : rebase_source : 3f7b9004cd26675dbab6a1909a4b5135d753fd04
2016-04-05 13:34:53 +02:00
Bevis Tseng
44deb08f5c
Bug 1151017 - Support the 'close' Event on Databases. r=khuey
...
Outline of this patch:
1. Define a new ipdl message called |CloseAfterInvalidationComplete| to trigger the close event after all transactions are complete only if the database is invalidated by the user agent.
2. Make sure the following event sequence is consistent during invalidation according to the steps in |5.2. Closing a database| by the following 2 solutions:
IDBRequest.onerror -> IDBTransaction.onerror -> IDBTransaction.onabort -> IDBDatabase.onclose.
2.1. In parent process, do not force to abort the transactions after invalidation but wait for all the transactions in its child process are complete.
2.2. In child process, make sure that each IDBTransaction will notify its completion to the parent after all its pending IDBRequests are finished.
3. Add test_database_onclose.js to test the close event especially when read/write operation is ongoing.
4. Add test_database_close_without_onclose.js as a XPCShell test because setTimeout() is not preferred in Mochitest to ensure that the IDBDatabase.onclose event won't be sent after closed normally.
2016-05-31 18:08:20 +08:00
Chris Peterson
43c2748f66
Bug 1277775 - Replace MOZ_CONSTEXPR{_VAR,_TMPL} with constexpr. r=froydnj
2016-07-08 14:39:53 -07:00
Jan de Mooij
3e6263744c
Bug 1283855 part 13 - Make JS_SetNativeStackQuota take JSContext instead of JSRuntime. r=fitzgen
2016-07-05 14:35:23 +02:00
Bevis Tseng
66870c070f
Bug 1273833 - Always return AbortError of the Open DB Request if the Upgrade Transaction is aborted. r=khuey
2016-05-19 15:05:31 +08:00
Jan de Mooij
fb0436ba41
Bug 1279295 - Create the runtime's JSContext when we create the runtime. r=luke
2016-06-22 09:47:52 +02:00
Jan Varga
ba7d23556d
Bug 1246828 - Part 3: Modify Factory instance counting to include FactoryOp and Database instances too; r=asuth
2016-06-15 11:48:56 +01:00
Jonathan Watt
b15368cfcb
Bug 1279451 - Remove a lot of unnecessary includes of nsAutoPtr.h. rs=sparky
2016-06-07 21:10:18 +01:00
Jan Varga
381cd4b9e9
Bug 1195930 - Part 6: A new schema upgrade for IndexedDB databases; r=asuth
2016-06-05 21:42:33 +02:00
Jan Varga
5a2fea4594
Bug 1195930 - Part 5: Core changes, support for storage directory versioning, new metadata v2 files, origin suffix added to API methods, origin attributes used across the implementation, more upgrade tests; r=asuth
2016-06-05 21:42:25 +02:00
Chris Peterson
11ef78ae89
Bug 1275016 - Rename Endian.h to EndianUtils.h to avoid #include confusion with Android's endian.h stdlib header. r=froydnj
...
--HG--
rename : mfbt/Endian.h => mfbt/EndianUtils.h
2016-05-22 13:31:11 -07:00
Jan Varga
a6c44c3242
Bug 1261491 - Intermittent test_quotaExceeded_recovery.js | application crashed [@ mozilla::dom::IndexedDatabaseManager::Notify]; r=khuey
2016-07-18 18:51:54 +02:00
Bevis Tseng
72c8e58003
Bug 823371 - Fire "blocked" event if deleteDatabase is blocked by other open connection. r=khuey
2016-05-11 16:36:52 +08:00
Bevis Tseng
e0e7ead1f0
Bug 1118028 - Allow objectStores and indexes to be renamed. r=khuey
...
--HG--
extra : rebase_source : 4f2d1da2ddafbe786c3908eb46723b4d2f0c48cc
2016-03-30 11:04:56 +08:00
Kyle Huey
941ab1f522
Bug 1268313: Part 7 - Move NS_NewRunnableMethod and friends to mozilla::NewRunnableMethod. r=froydnj
2016-05-05 01:45:00 -07:00
Carsten "Tomcat" Book
ba3fe0975c
Backed out changeset 85ce8cb0639a (bug 1268313)
...
--HG--
extra : rebase_source : 56d1cf41a2dc4959b67f834e07192a5c772176a8
2016-04-29 14:21:16 +02:00
Kyle Huey
48a594a09e
Bug 1268313: Part 7 - Move NS_NewRunnableMethod and friends to mozilla::NewRunnableMethod. r=froydnj
2016-04-28 14:08:25 -07:00
Kyle Huey
c73656947b
Bug 1265927: Move nsRunnable to mozilla::Runnable, CancelableRunnable to mozilla::CancelableRunnable. r=froydnj
2016-04-25 17:23:21 -07:00
Nicholas Nethercote
60dcde7875
Bug 1261723 (part 2) - Separate class ops from js::Class. code=njn,h4writer. r=efaust,bz.
...
js::Class op are often all null. And when they're not all null, they're often
duplicated among classes. By pulling them out into their own struct, and using a
(possibly null) pointer in js::Class, we can save 114 KiB per process on
64-bit, and half that on 32-bit.
* * *
imported patch separate-ClassOps-2
--HG--
extra : rebase_source : bd751bf247e9491c1966a123dbeffa573657dfb1
2016-04-01 11:00:01 +11:00
Kyle Huey
aaeb289b61
Bug 1256049: Remove diagnostic assertions. r=me
2016-04-11 11:39:52 -07:00
Kyle Huey
5063425777
Bug 1256049: Correctly handle databases currently performing maintenance when a new transaction is started. r=janv
2016-04-05 20:21:25 -07:00
Sebastian Hengst
dde9a7fe14
Backed out changeset 7f0ea82bf6e9 (bug 1256049) because the new assertion hits so often that it generates many oranges. r=backout
2016-04-05 00:06:36 +02:00
Kyle Huey
794ef1d41e
Bug 1256049: More assertions. r=janv
2016-04-04 13:29:59 -07:00
Kyle Huey
8eb934feb7
Bug 1256049: Enable two more assertions in release. r=janv
2016-03-28 10:28:15 -07:00
Kyle Huey
b58cdb109e
Bug 1256049: Revert diagnostics. r=janv
2016-03-28 10:28:15 -07:00
Kyle Huey
d9265a3eaf
Bug 1259294: Part 2 - Use MOZ_ALWAYS_SUCCEEDS. r=froydnj
2016-03-28 10:28:15 -07:00
Kyle Huey
032dc90f4b
Bug 1256049: More diagnostics. r=janv
2016-03-21 13:49:18 -07:00
Andi-Bogdan Postelnicu
f3c7e89ddb
Bug 1258339 - check return value of GetFileSize. r=janv
...
MozReview-Commit-ID: Fy0jMfVpcCN
--HG--
extra : rebase_source : 31ac4fe714aa62a6c5b86438ca3ab983c7d4a6d9
2016-03-21 15:17:04 +02:00
Kyle Huey
31aa749f1f
Bug 1256049: Add some diagnostic code for an IDB crash. r=janv
2016-03-18 14:15:45 -07:00
Bogdan Postelnicu
8f95e3eb5b
Bug 1256593 - remvoed dead code. r=janv
...
MozReview-Commit-ID: CqeAV6I0Jme
--HG--
extra : rebase_source : 69b5d7396b30a6a483ef341100cc74698b2250db
2016-03-15 13:44:42 +02:00
Wes Kocher
a52e3dedae
Backed out changeset 5b6d3398c6e5 (bug 1256049) for build bustage CLOSED TREE
...
MozReview-Commit-ID: 8Ep9n1pa8u1
2016-03-17 15:38:32 -07:00
Kyle Huey
d694d665be
Bug 1256049: Add some diagnostic code for an IDB crash. r=janv
...
CLOSED TREE
2016-03-17 15:06:33 -07:00
Jan Varga
e578091712
Bug 1182987 - Part 3: Add "cleanup" transaction with disabled quota checks and vacuuming/checkpointing after commit; r=baku
2016-03-15 07:00:37 +01:00
Jan Varga
f3d631abd1
Bug 1182987 - Part 1: Remove unreferenced files immediately; r=baku
2016-03-15 07:00:15 +01:00
Gabriele Svelto
7866c2e34a
Bug 1253807 - Use the shared UniqueFreePtr class r=bent
2016-03-09 12:24:03 +01:00
Jonathan Watt
a73bd8c354
Bug 1253094, part 1 - Stop using DebugOnly for class/struct members in dom/. r=baku
...
MozReview-Commit-ID: ErWZs9oV4WS
2016-02-26 15:52:06 +00:00
Jan Varga
3c44d5ea54
Bug 1248550 - Address review comments; r=khuey
2016-03-01 10:46:03 +01:00