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
Boris Zbarsky
efc4dcf284
Bug 1275315 part 2. Use the new Realm getters in binding code. r=peterv
2016-07-09 00:19:52 -04:00
Chris Peterson
43c2748f66
Bug 1277775 - Replace MOZ_CONSTEXPR{_VAR,_TMPL} with constexpr. r=froydnj
2016-07-08 14:39:53 -07:00
Alexandre Lissy
ee77e301dd
Bug 1285170 - Remove app:// protocol r=valentin
...
MozReview-Commit-ID: 4cnLrqqyP35
--HG--
extra : rebase_source : 424b63df547308033fc960632c5ef5939e3d8d85
2016-03-16 17:11:12 +01:00
Boris Zbarsky
97b0a16147
Bug 1282150 part 4. Have just one way of getting the rooting JSContext, and call it nsContentUtils::RootingCx(). r=bholley
2016-07-07 20:08:26 -04: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
Andrea Marchesini
43868a9da7
Bug 1282366 - Improve WorkerHolder use in Runnables, r=khuey
2016-07-04 08:19:10 +02:00
Tom Schuster
4455e57052
Bug 1114580 - Change ESClassValue to an enum class. r=jorendorff
2016-06-30 00:04:56 +02:00
Bevis Tseng
2673621c4b
Bug 1281377 - In IDBKeyRange.includes(), do not compare the given value with the unset boundary. r=khuey
2016-06-22 13:40:12 +08:00
Andrea Marchesini
aac2306f2c
Bug 1269154 - Get rid of WorkerFeature: WorkerHolder, r=khuey
...
--HG--
rename : dom/cache/Feature.cpp => dom/cache/CacheWorkerHolder.cpp
rename : dom/cache/Feature.h => dom/cache/CacheWorkerHolder.h
rename : dom/workers/WorkerFeature.h => dom/workers/WorkerHolder.h
2016-06-23 10:53:14 +02:00
Carsten "Tomcat" Book
47aeb86e2c
Backed out changeset 1c5d78c7ba43 (bug 1269154) for bustage on a CLOSED TREE
...
--HG--
rename : dom/cache/CacheWorkerHolder.cpp => dom/cache/Feature.cpp
rename : dom/cache/CacheWorkerHolder.h => dom/cache/Feature.h
rename : dom/workers/WorkerHolder.h => dom/workers/WorkerFeature.h
extra : rebase_source : 49f9e9ce0500ac441fe97878cf9308804926544f
2016-06-23 10:13:54 +02:00
Andrea Marchesini
45087a7970
Bug 1269154 - Get rid of WorkerFeature: WorkerHolder, r=khuey
...
--HG--
rename : dom/cache/Feature.cpp => dom/cache/CacheWorkerHolder.cpp
rename : dom/cache/Feature.h => dom/cache/CacheWorkerHolder.h
rename : dom/workers/WorkerFeature.h => dom/workers/WorkerHolder.h
2016-06-22 17:24:35 +02:00
Bevis Tseng
6f2998f958
Bug 1274161 - Do not abort the transaction twice if the IDBRequest is failed due to the abortion of its transaction. r=khuey
2016-05-19 15:46:15 +08: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
James Andreou
a0f644604c
Bug 1277589
- Replaced setting dochsell to private with opening a new pb window. r=ehsan
...
MozReview-Commit-ID: 16y65vfxigM
2016-06-07 18:56:31 -07:00
Jan Varga
a25258797e
Bug 1195930 - Part 11: Unified SQLite database schema and storage version, major and minor version support; r=asuth
2016-06-05 21:43:09 +02:00
Jan Varga
111f87a355
Bug 1195930 - Part 9: Remove old directories (fixes bug 1273717); r=asuth
2016-06-05 21:42:55 +02:00
Jan Varga
1fb4d91a67
Bug 1195930 - Part 7: New test for metadata v2 restoring (also tests userContextId origin attribute); r=asuth
2016-06-05 21:42:40 +02: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
Jan Varga
3249fba977
Bug 1195930 - Part 2: Refactor StorageDirectoryHelper to a base class and two separate final classes, improve correctness of default storage upgrade and add support for resource urls; r=asuth
2016-06-05 21:42:01 +02:00
Jan Varga
64b62c9b07
Bug 1195930 - Part 1: Re-enable tests for clearing origin data; r=asuth
2016-06-05 21:41:48 +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
Bill McCloskey
291c555f34
Bug 1262671 - void** -> PickleIterator (r=froydnj)
2016-05-27 09:57:38 -07: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
Chris Peterson
353ee65255
Bug 1272513 - Part 1: Suppress -Wshadow warnings-as-errors in some directories. r=glandium
2016-05-11 00:00:01 -07:00
Andrea Marchesini
6441b9d372
Bug 1258490 - Implement file.webkitrelativepath, r=smaug
2016-05-13 13:11:38 +02:00
Ben Turner
859a0eeab3
Bug 1133540 - Add Test Coverage for the Assertion. r=khuey
2015-02-16 09:41:00 +08:00
Bevis Tseng
446e7384f0
Bug 1268380 - Part 1: Lower the precedence of SyntaxError next to ConstraintError in IDBObjectStore::CreateIndex(). r=khuey
...
--HG--
extra : rebase_source : 30c995da764e281636c1e134b421baf60a1d1c71
2016-04-29 10:56:02 +08:00
L. David Baron
71a0554018
Bug 1270649 - Rename mExceptionHasBeenRisen to mExceptionWasRaised. r=smaug
...
risen is the past participle of rise; raised is the past participle of
raise, which is what is done to exceptions.
See:
https://en.wiktionary.org/wiki/rise#Verb
https://en.wiktionary.org/wiki/raise#Verb (definition 2, though not sure
if the use for exceptions is from 2.3 or 2.5)
(I wonder if mExceptionRaised would be simpler, though.)
MozReview-Commit-ID: 8Ynup8aDcLT
2016-05-08 22:16:42 -07: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
Bevis Tseng
b4c3b32f64
Bug 1268378 - Fire TypeError from IDBDatabase.transaction() if Mode is Invalid. r=khuey
...
--HG--
extra : rebase_source : 6f9a9d4d6a5a42211830e7b09970b5bf2039bf41
2016-04-28 17:38:21 +08:00
Carsten "Tomcat" Book
ba3fe0975c
Backed out changeset 85ce8cb0639a (bug 1268313)
...
--HG--
extra : rebase_source : 56d1cf41a2dc4959b67f834e07192a5c772176a8
2016-04-29 14:21:16 +02:00
Andrea Marchesini
1c0c183890
Bug 1261009 - Remove the Data Store API, r=fabrice
2016-04-29 09:02:45 +08: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
Bevis Tseng
99314e7542
Bug 1265973 - Throw InvalidStateError at IDBCursor.update() if IDBCursor.continue() is in progress. r=khuey
2016-04-20 14:36:19 +08:00
Jan Varga
4834a1cc3e
Bug 1182987 - Part 5: Change mode of "readwrite" transaction to "cleanup" after QuotaExceeded is fired; r=baku
...
--HG--
rename : dom/indexedDB/test/unit/test_quotaExceeded_recovery.js => dom/indexedDB/test/unit/test_cleanup_transaction.js
2016-04-21 06:53:30 +02: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
2709afd167
Bug 1263311: Part 3 - s/nsCancelableRunnable/CancelableRunnable/g. r=froydnj
2016-04-11 11:40:06 -07:00
Kyle Huey
1cc02aa8c6
Bug 1263311: Part 1 - Change the nsICancelableRunnable interface. r=froydnj
2016-04-11 11:40:06 -07:00
Wes Kocher
7d2cebe912
Backed out 3 changesets (bug 1263311) for Windows build failures in ServiceWorkerPrivate.cpp CLOSED TREE
...
Backed out changeset 0434a548e1fe (bug 1263311)
Backed out changeset 60b1be29446c (bug 1263311)
Backed out changeset 18132498bc40 (bug 1263311)
MozReview-Commit-ID: LPEa05QobdQ
2016-04-11 12:50:56 -07:00
Kyle Huey
d200ed89d0
Bug 1263311: Part 3 - s/nsCancelableRunnable/CancelableRunnable/g. r=froydnj
2016-04-11 11:40:06 -07:00
Kyle Huey
f13a6fc866
Bug 1263311: Part 1 - Change the nsICancelableRunnable interface. r=froydnj
2016-04-11 11:40:06 -07:00
Kyle Huey
aaeb289b61
Bug 1256049: Remove diagnostic assertions. r=me
2016-04-11 11:39:52 -07:00
Blake Kaplan
9b55bc31f9
Bug 1252738 - Stop using CPOWs in this test. r=felipc
2016-04-05 18:58:00 +02:00