Commit Graph

397 Commits

Author SHA1 Message Date
Bevis Tseng
50f0f316fd Bug 1309527 - Fix the race condition to prevent the access of metadata in both PBackground thread and the Connection thread. r=janv 2016-11-02 23:12:31 +01:00
Sebastian Hengst
735962bdc5 Backed out changeset 2bbfcf5356f7 (bug 1309527) for timing out in idbobjectstore-rename-store.html on Windows x64 opt. r=backout 2016-11-02 19:15:52 +01:00
Bevis Tseng
23285aa810 Bug 1309527 - Fix the race condition to prevent the access of metadata in both PBackground thread and the Connection thread. r=janv 2016-10-26 19:14:12 +08:00
Andrea Marchesini
a6f963347f Bug 1313907 - Remove a warning in IDB ActorParent.cpp, r=me 2016-10-30 10:02:26 +01:00
Jan Varga
2cc5284c21 Bug 1311466 - Part 10: Implement functionality for preprocessing multiple results, fixed objectStore.getAll() to use it including a new test; r=asuth 2016-10-26 06:51:33 +02:00
Jan Varga
8884136d35 Bug 964561 - A follow-up fix. Pass correct buffer size to CopyFileData(); r=asuth 2016-10-26 05:44:53 +02:00
Jan Varga
a0cd2d4420 Bug 1311466 - Part 9: Extract common code for sending preprocess info; r=asuth 2016-10-25 21:19:10 +02:00
Jan Varga
0165e02ba0 Bug 1311466 - Part 8: Implement basic functionality for preprocessing results before they are sent for synchronous deserialization; r=asuth 2016-10-25 21:19:06 +02:00
Jan Varga
5933fbc5cc Bug 1311466 - Part 6: Core changes for WebAssembly module deserialization (works only in xpcshell); r=asuth 2016-10-25 21:18:58 +02:00
Jan Varga
5a3518ebd4 Bug 1311466 - Part 3: Core changes for WebAssembly module serialization including a test; r=asuth 2016-10-25 21:18:48 +02:00
Jan Varga
51555e3bf4 Bug 1311466 - Part 2: Refactor IPDL structs to use file types too; r=asuth 2016-10-25 21:18:44 +02:00
Jan Varga
a5b9a44c3b Bug 1311466 - Part 1: Define only one file type; r=asuth 2016-10-25 21:18:40 +02:00
Jan Varga
9a7f61f4dd Bug 964561 - Part 7: Compress externally stored structured clone data; r=asuth 2016-10-25 21:18:26 +02:00
Jan Varga
42343f6716 Bug 964561 - Part 6: Core changes for storing structured clone data outside of the database; r=asuth 2016-10-25 21:18:22 +02:00
Jan Varga
b95062dc63 Bug 964561 - Part 4: Update keys directly in the structured clone buffer; r=asuth 2016-10-25 21:18:14 +02:00
Jan Varga
34f638401a Bug 964561 - Part 3: Implement an input stream wrapper around structured clone data; r=asuth 2016-10-25 21:18:11 +02:00
Jan Varga
25ab960dcb Bug 964561 - Part 2: Refactor file ids handling for better expandability; r=asuth 2016-10-25 21:18:07 +02:00
Jan Varga
3c056abb44 Bug 964561 - Part 1: Use a type in StructuredCloneFile instead of a boolean; r=asuth 2016-10-25 21:18:03 +02:00
Lars T Hansen
30645f2bc5 Bug 1302036 - DOM changes to conform to new JS engine API for cloning. r=baku 2016-10-24 15:14:45 +02:00
Nathan Froyd
646a9538bb Bug 1312104 - part 1 - use BitwiseCast for punning between uint64_t/double in indexedDB; r=janv
We have code elsewhere for this sort of stuff; let's use it here.
2016-10-24 13:22:54 -04:00
Carsten "Tomcat" Book
d3896c257f merge mozilla-inbound to mozilla-central a=merge 2016-09-28 15:56:33 +02:00
Cykesiopka
1388365807 Bug 1304779 - Delete unused dom/indexedDB/ActorsParent.cpp copy constructors. r=janv
MozReview-Commit-ID: 4c5Y0QtQ5CS
2016-09-23 00:29:44 +08:00
Eric Faust
15333897fc Bug 1263595 - Avoid deadlock between the JIT and the gecko profiler on win64. (r=froydnj) 2016-09-15 21:35:14 -07:00
Jan Varga
2328b13a6d Bug 1290853 - Iterate the blocked transactions in the first-come, first-served order. r=btseng 2016-08-24 13:40:25 +08:00
Wes Kocher
9ca1b6d1c1 Backed out changeset 39da44265946 (bug 1263595) for build bustage a=backout CLOSED TREE 2016-09-16 14:19:22 -07:00
Eric Faust
67f078a908 Bug 1263595 - Avoid deadlock between the JIT and the gecko profiler on win64. (r=froydnj) 2016-09-15 21:35:14 -07:00
Phil Ringnalda
781e99ee0b Backed out changeset 48694b762a84 (bug 1263595) for -Werror bustage
CLOSED TREE
2016-09-15 22:04:50 -07:00
Eric Faust
0afb627b8f Bug 1263595 - Avoid deadlock between the JIT and the gecko profiler on win64. (r=froydnj) 2016-09-15 21:35:14 -07:00
Michael Layzell
419868d357 Bug 1018486 - Part 9: Changes to account for modifications to clang plugin, r=ehsan
MozReview-Commit-ID: EPQMbfHYxUK
2016-09-07 10:50:47 -04:00
Kan-Ru Chen
2c5320e517 Bug 1300512 - Remove OptionalContentId and replace it with Maybe<ContentParentId> in IndexedDB. r=janv
MozReview-Commit-ID: 6Cjlej1TwCY
2016-09-05 18:31:21 +08:00
Nicholas Nethercote
887efe04d5 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.
2016-09-01 15:01:16 +10:00
Kan-Ru Chen
a9b19d0584 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
2016-08-24 14:47:04 +08:00
Kan-Ru Chen
1321079e05 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
bbd9122c59 Bug 1275518 - Add null pointer check before accessing DatabaseInfo::mConnection. r=janv 2016-08-17 16:13:50 +08:00
Andrea Marchesini
c8a40161f0 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
3cabb254c1 Bug 1293327 - Take file protocol handler service directly in indexedDB. r=janv 2016-08-11 22:13:17 -04:00
Bevis Tseng
5cbfe465ba Bug 1271506 - Support of IDBObjectStore.getKey. r=khuey 2016-07-21 16:31:59 +08:00
Bevis Tseng
0a2276bb63 Bug 1271505 - Support of IDBCursor.continuePrimaryKey. r=khuey 2016-07-26 15:26:50 +08:00
Bevis Tseng
0ca5f77d1e Bug 1289375 - Rollback incomplete change of preloading cursors for IndexedDB. r=khuey 2016-07-26 18:51:19 +08:00
Jan de Mooij
7ff36899cf 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
db1afeede8 merge mozilla-inbound to mozilla-central a=merge 2016-07-20 11:20:15 +02:00
Andi-Bogdan Postelnicu
05ca6f2053 Bug 1287756 - prevent assignment in assert expression for |mCurrentMaintenance|.r=janv
MozReview-Commit-ID: 8p72mQrKmWx
2016-07-19 21:18:03 +03:00
Kyle Huey
39cb8f5ab0 Bug 1285327: Micro-optimize some IDB refcounting. r=froydnj 2016-07-20 11:46:48 +08:00
Fabrice Desré
51f3bfa03e Bug 1286190 - Get rid of MOZ_CHILD_PERMISSIONS r=bz
MozReview-Commit-ID: Lx2kozynptu
2016-04-05 13:34:53 +02:00
Bevis Tseng
cdadfbd998 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
c35faf4632 Bug 1277775 - Replace MOZ_CONSTEXPR{_VAR,_TMPL} with constexpr. r=froydnj 2016-07-08 14:39:53 -07:00
Jan de Mooij
9a35d3fcb0 Bug 1283855 part 13 - Make JS_SetNativeStackQuota take JSContext instead of JSRuntime. r=fitzgen 2016-07-05 14:35:23 +02:00
Bevis Tseng
57b444e39e 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
971389ad49 Bug 1279295 - Create the runtime's JSContext when we create the runtime. r=luke 2016-06-22 09:47:52 +02:00
Jan Varga
39178320b3 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