Commit Graph

291 Commits

Author SHA1 Message Date
Jan Varga
223cc662a8 Bug 1311466 - Part 9: Extract common code for sending preprocess info; r=asuth 2016-10-25 21:19:10 +02:00
Jan Varga
9d0d2c5654 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
8fef5e4a97 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
00707ba46a 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
51534c010e Bug 1311466 - Part 2: Refactor IPDL structs to use file types too; r=asuth 2016-10-25 21:18:44 +02:00
Jan Varga
bf334a376c Bug 1311466 - Part 1: Define only one file type; r=asuth 2016-10-25 21:18:40 +02:00
Jan Varga
3e4ce601e3 Bug 964561 - Part 7: Compress externally stored structured clone data; r=asuth 2016-10-25 21:18:26 +02:00
Jan Varga
b0015a18c7 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
9844d8618e Bug 964561 - Part 4: Update keys directly in the structured clone buffer; r=asuth 2016-10-25 21:18:14 +02:00
Jan Varga
ca3b715776 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
1a6dfd7db0 Bug 964561 - Part 2: Refactor file ids handling for better expandability; r=asuth 2016-10-25 21:18:07 +02:00
Jan Varga
f9dad43bb9 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
9f439ac1de Bug 1302036 - DOM changes to conform to new JS engine API for cloning. r=baku
--HG--
extra : rebase_source : bc9bda42eb0769f2fe76d702a41278e01bb497d7
2016-10-24 15:14:45 +02:00
Nathan Froyd
7f6b03f97d 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
572e74ee99 merge mozilla-inbound to mozilla-central a=merge 2016-09-28 15:56:33 +02:00
Cykesiopka
69ec95883f Bug 1304779 - Delete unused dom/indexedDB/ActorsParent.cpp copy constructors. r=janv
MozReview-Commit-ID: 4c5Y0QtQ5CS

--HG--
extra : rebase_source : ebdf38ea0b65c49c0c2a6df878466f87d9604dc4
2016-09-23 00:29:44 +08:00
Eric Faust
121151ec67 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
c0462c28b6 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
611fb66887 Backed out changeset 39da44265946 (bug 1263595) for build bustage a=backout CLOSED TREE 2016-09-16 14:19:22 -07:00
Eric Faust
db0cfdc6bc 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
6beabc555f Backed out changeset 48694b762a84 (bug 1263595) for -Werror bustage
CLOSED TREE
2016-09-15 22:04:50 -07:00
Eric Faust
c725e729c5 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
e12728495c 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
78c48f9b6d Bug 1300512 - Remove OptionalContentId and replace it with Maybe<ContentParentId> in IndexedDB. r=janv
MozReview-Commit-ID: 6Cjlej1TwCY

--HG--
extra : rebase_source : 2a9990e842a05a2e75b473f6d038b946bf59fc5e
2016-09-05 18:31:21 +08:00
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