Commit Graph

1804 Commits

Author SHA1 Message Date
Florian Quèze
0e0865f4fc Bug 1331599 - script-generated patch to replace removeEventListener calls with the once option when possible, r=jaws. 2017-01-25 07:01:52 +01:00
Nicholas Nethercote
22b6d342d7 Bug 1333296 (part 1) - Rename MOZ_ENABLE_PROFILER_SPS as MOZ_GECKO_PROFILER. r=mstange,glandium.
--HG--
extra : rebase_source : 223f3a17f009645369be503392cc1f0cea7f19a1
2017-01-24 14:15:12 +11:00
Florian Quèze
85611a7b6d Bug 1331081 - script generated patch to omit addEventListener/removeEventListener's third parameter when it's false, r=jaws.
--HG--
extra : rebase_source : a22344ee1569f58f1f0a01017bfe0d46a6a14602
2017-01-17 11:50:25 +01:00
Florian Quèze
fc6379e827 Bug 1329182 - remove trailing newURI null parameters in the rest of the tree, r=jaws. 2017-01-09 20:27:26 +01:00
Markus Stange
d2dbdff4a9 Bug 1323100 - Use NS_NewNamedThread for IndexedDB threads. r=froydnj
MozReview-Commit-ID: Do4l5QL2qSG

--HG--
extra : rebase_source : ae45941a84ec25a45b796bd01d6bac48f3be6886
2016-12-21 11:26:48 +01:00
Olli Pettay
0364dbc792 Bug 1326507, remove NS_IMPL_CYCLE_COLLECTION_TRAVERSE_SCRIPT_OBJECTS, r=mccr8
--HG--
extra : rebase_source : 3ae1207308de120b7299b13ecaa95dd1612b3459
2017-01-03 21:47:55 +02:00
Tim Nguyen
668b50d4d7 Bug 1322938 - Disable test_lowDiskSpace.html on Android debug (bug 1328321). r=me
MozReview-Commit-ID: 7zC45kyXsOB
2017-01-03 19:12:39 +01:00
Jan Varga
965cffb389 Bug 1286914 - Part 1: Prevent creation of origin directories which are not supported by our origin parser; r=asuth 2017-01-03 13:46:34 +01:00
Luke Wagner
d69a4426a7 Bug 1326280 - Baldr: use .wasm as bytecode file format (r=bbouvier)
MozReview-Commit-ID: 5nmuLDswfWU

--HG--
extra : rebase_source : eb0839326f65c58bd51521bc6bcdca9a4cec846a
2016-12-30 10:49:54 -06:00
Cervantes Yu
6629c9887c Bug 1321244 - Lazily init global variables that could implicitly initialize NSPR. r=froydnj
MozReview-Commit-ID: IPU9Qc8lr50

--HG--
extra : rebase_source : f25e7403492d1935c8ca714a75ccf99811775b44
2016-12-01 11:48:32 +08:00
Kan-Ru Chen
c649cfaa98 Bug 1319271 - Use actor's manager in case actor is already deleted (r=billm)
MozReview-Commit-ID: 3Dr2POjqNft
2016-12-13 16:46:33 -08:00
Jan Varga
d80cf26c97 Bug 1312808 - rewrite stored WebAssembly.Module when build-id changes; r=asuth,luke 2016-12-08 15:37:13 -10:00
Tooru Fujisawa
515ef9ba45 Bug 1321218 - Remove legacy generator from dom/. r=smaug 2016-12-01 18:11:32 +09:00
Panos Astithas
64baf2d729 Bug 1282768 - Part 2 - Move the secondary actions of doorhanger notifications to their own menu button. r=paolo
MozReview-Commit-ID: 2cnufF7wZJG

--HG--
extra : rebase_source : 6bb9c9f8bd52bd8e6f54cbc2b0ef2760fee25c3a
2016-11-20 18:40:22 +01:00
Jonathan Kingston
74e50ea3c1 Bug 1267604 - Restyle doorhanger notifications. r=paolo
MozReview-Commit-ID: HBykgFhgjmX

--HG--
extra : rebase_source : fd94d5e2549271b4f0696b1435bce9178cb291d1
2016-11-20 18:40:08 +01:00
Dave Huseby
4e53da9544 Bug 1309067 - adding asserts to ensure boolean and OA private browsing values match. r=ehsan 2016-11-17 12:14:00 +01:00
Ehsan Akhgari
d07f79a266 Bug 1318210 - Remove nsIAppsService; r=baku 2016-11-17 10:41:36 -05:00
Stone Shih
1ed10ff082 Bug 1305458 Part1: Rename nsIDOMEventTarget::PreHandleEvent to nsIDOMEventTarget::GetEventTargetParent. r=smaug
MozReview-Commit-ID: FM3vDUyLOCb

--HG--
extra : rebase_source : 5a513af84718a6d591f77437a0704984c8fc2b67
2016-10-21 10:11:07 +08:00
Andrea Marchesini
3120de1ea7 Bug 1315905 - Cleanup Necko http security check - part 2 - tests, r=valentin 2016-11-17 14:53:30 +01:00
Ehsan Akhgari
dc33b55d94 Bug 1312101 - Part 2: Remove AppProcessChecker and code that depends on it; r=baku 2016-11-16 14:51:08 -05:00
Ehsan Akhgari
eac76d9772 Bug 1310845 - Remove support for mozapp iframes; r=fabrice,jryans,baku,mcmanus
This patch removes support for mozapp iframes, leaving support for
mozbrowser iframes intact.  Some of the code has been rewritten in order
to phrase things in terms of mozbrowser only, as opposed to mozbrowser
or app.  In some places, code that was only useful with apps has been
completely removed, so that the APIs consumed can also be removed.  In
some places where the notion of appId was bleeding out of this API, now
we use NO_APP_ID.  Other notions of appId which were restricted to this
API have been removed.
2016-11-16 09:13:38 -05:00
Kan-Ru Chen
f8100451db Bug 1314254 - Add mozilla::ipc::IPCResult type and convert IPDL handlers to use new return type. r=billm
We will use the new type for the generated IPDL message handler
prototype to make sure correct error handling method is called.

MozReview-Commit-ID: AzVbApxFGZ0
2016-11-15 04:26:00 +01:00
Andi-Bogdan Postelnicu
65ae72060c Bug 1317241 - Use C++11's override and remove virtual where applicable in dom/ r=baku
MozReview-Commit-ID: 8jUAehd1odv

--HG--
extra : rebase_source : 13375a14447ce344214fa30babf540de0a394c6a
2016-11-15 13:09:07 +02:00
Andi-Bogdan Postelnicu
ae0295a290 Bug 1317241 - Replace string literals containing escaped characters with raw string literals in dom/. r=baku
MozReview-Commit-ID: FGjPRf0g3Yt

--HG--
extra : rebase_source : efe73faf1a5d3f26efea56e985bdbb586a6d1da8
2016-11-14 11:45:55 +02:00
Andi-Bogdan Postelnicu
aaf2063029 Bug 1317241 - Replace default bodies of special member functions with = default in dom/. r=baku
MozReview-Commit-ID: 12AHOhrpaNO

--HG--
extra : rebase_source : 7881277a13fe7389b95635ee9b94f1686f56d142
2016-11-14 11:40:37 +02:00
Andi-Bogdan Postelnicu
4df235170d Bug 1317241 - Use auto type specifier where aplicable for variable declarations to improve code readability and maintainability in dom/. r=baku
MozReview-Commit-ID: CST7fV4h20h

--HG--
extra : rebase_source : 663d24e9c15d7b42023f1557b75fb8dabfc9b6a9
2016-11-14 11:35:58 +02:00
Andi-Bogdan Postelnicu
b43be84495 Bug 1317241 - Converts for(...; ...; ...) loops to use the new range-based loops in C++11 in dom/. r=baku
MozReview-Commit-ID: ysMKgcL3YQ

--HG--
extra : rebase_source : 37ac432e1bca84a6ab34ab2b84577b6702ba6413
2016-11-14 11:31:11 +02:00
Andrea Marchesini
2aba798852 Bug 1303518 - Remove the chrome only constructor for File, r=qdot 2016-11-11 18:56:44 +01:00
Phil Ringnalda
a7bc94158c Merge m-i to m-c, a=merge
MozReview-Commit-ID: H4VKCYDq5cD

--HG--
rename : xpcom/tests/TestAutoRef.cpp => xpcom/tests/gtest/TestAutoRef.cpp
rename : xpcom/tests/TestCOMArray.cpp => xpcom/tests/gtest/TestCOMArray.cpp
rename : xpcom/tests/TestCOMPtr.cpp => xpcom/tests/gtest/TestCOMPtr.cpp
rename : xpcom/tests/TestCOMPtrEq.cpp => xpcom/tests/gtest/TestCOMPtrEq.cpp
rename : xpcom/tests/TestFile.cpp => xpcom/tests/gtest/TestFile.cpp
rename : xpcom/tests/TestHashtables.cpp => xpcom/tests/gtest/TestHashtables.cpp
rename : xpcom/tests/TestID.cpp => xpcom/tests/gtest/TestID.cpp
2016-11-05 13:36:25 -07:00
Sebastian Hengst
72f14c6f84 Bug 1310297 - Remove test annotations using b2g, mulet or gonk: dom/indexedDB. r=RyanVM
MozReview-Commit-ID: 6Y7ZxXV59au

--HG--
extra : rebase_source : eba5e6849d332c162ce390a295eec0b7fe3f0703
2016-11-05 11:29:16 +01:00
Bevis Tseng
3af6bacb93 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
Sebastian Hengst
5c11198962 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
4496af6962 Bug 1309527 - Fix the race condition to prevent the access of metadata in both PBackground thread and the Connection thread. r=janv
--HG--
extra : rebase_source : 4be928b9ed804ac033edfbf5b95490f178a49366
2016-10-26 19:14:12 +08:00
Bevis Tseng
fa5f21c539 Bug 1274075 - Throw UnknowError if the size of the serialized message is too large. r=janv
--HG--
extra : rebase_source : 1b34071dae6ccca7c8aa7cc8e8068c90218aceae
2016-10-17 11:45:03 +08:00
Phil Ringnalda
1261559426 Backed out changeset 2e8791563f4d (bug 1309527) for Win8 timeouts in idbobjectstore-rename-store.html 2016-11-02 19:22:18 -07:00
Bevis Tseng
790be48aa6 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
Andrea Marchesini
0e290de2a9 Bug 1313907 - Remove a warning in IDB ActorParent.cpp, r=me 2016-10-30 10:02:26 +01:00
Ben Kelly
0983850a63 Bug 1303167 P6 Rename new suspend and freeze methods to final names. r=smaug 2016-10-26 10:20:16 -07:00
Ben Kelly
bf0ca72f77 Bug 1303167 P2 Use new window suspend and freeze methods. r=smaug
* * *
Bug 1303167 P2 interdiff 0001 Review feedback
2016-10-26 10:20:15 -07:00
Shawn Huang
d93d31503b Bug 1304966 - Enable Storage API only for nightly bulid, r=baku 2016-10-26 21:38:08 +08:00
Luke Wagner
c13c2f061b Bug 1311466 - A follow-up fix. Fix a todo in verifyWasmModule() by passing constructors of correct global to instanceof; r=janv 2016-10-26 11:10:08 +02:00
Jan Varga
17a0c4983e 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
22e3c614b1 Bug 964561 - A follow-up fix. Pass correct buffer size to CopyFileData(); r=asuth 2016-10-26 05:44:53 +02:00
Jan Varga
1fb27ff1f9 Bug 1311466 - A follow-up fix. Fix Cancel() return type to make windows happy; r=me 2016-10-25 21:59:22 +02:00
Jan Varga
ae1e9a74ca Bug 1311466 - A follow-up fix. Fix a bad implicit conversion constructor; r=me CLOSED TREE 2016-10-25 21:38:37 +02:00
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
d1f5aaafa4 Bug 964561 - Part 9: Add a new test for externally stored structured clone data; r=asuth 2016-10-25 21:18:33 +02:00
Jan Varga
37e3797013 Bug 964561 - Part 8: Disable externally stored structured clone data in file tests; r=asuth 2016-10-25 21:18:29 +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
1ac7543f8b Bug 964561 - Part 5: Add a data threshold pref; r=asuth 2016-10-25 21:18:18 +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
Jan Varga
e15de1fcc5 Bug 768074 - Update Snappy library to revision >= r59 to get ARM optimizations; r=bkelly 2016-10-24 21:19:24 +02:00
Nathan Froyd
d1879e1c4b Bug 1312104 - part 2 - use FloatingPoint<>::kSignBit in lieu of hand-rolled constant; r=janv
This way is a little bit more readable.
2016-10-24 13:22:54 -04: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
Jan Varga
3e0e4383f2 Bug 1272855 - dom/indexedDB/test/unit/test_quotaExceeded_recovery.js incurs ~3.5 GB of I/O; r=baku 2016-10-24 11:18:25 +02:00
Ehsan Akhgari
834072cc97 Bug 1311247 - Avoid using unsafe CPOWs in browser_perwindow_privateBrowsing.js; r=mrbkap 2016-10-21 11:20:05 -04:00
Carsten "Tomcat" Book
6f5013d535 Backed out changeset e93fcd61991f (bug 1311247) for frequent OS X bc 7 failures 2016-10-21 08:51:46 +02:00
Ehsan Akhgari
5caff82499 Bug 1311247 - Avoid using unsafe CPOWs in browser_perwindow_privateBrowsing.js; r=mrbkap 2016-10-20 18:33:00 -04:00
Jon Coppeard
556585c65f Bug 1297558 - Remove explicit calls to Expose*ToActiveJS r=mccr8 2016-10-18 17:58:19 +01:00
Ehsan Akhgari
9de6bbbaec Bug 1261019 - Part 3: Remove Navigator.mozApps and code depending on it; r=myk,jryans,fabrice,mcmanus,peterv 2016-10-13 13:18:41 -04:00
Bevis Tseng
d3bd0e0c64 Bug 1300454 - SendAbort() to parent after IDBTransaction is aborted in INITIAL state. r=janv 2016-10-04 15:40:11 +08:00
Josh Matthews
ee8da66177 Bug 1294450 - Make AutoIPCStream favour PSendStream for large input streams. r=nfroydj 2016-09-29 06:20:00 +02:00
Wes Kocher
673a0db365 Backed out changeset 57e78c503c4e (bug 1294450) for build bustage a=backout 2016-09-28 17:38:00 -07:00
Josh Matthews
facc06fda2 Bug 1294450 - Make AutoIPCStream favour PSendStream for large input streams. r=froydnj
--HG--
extra : rebase_source : 764aa593bd2734ca15d556a0b5ca55e3f69d25bb
2016-09-28 18:38:51 -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
Bevis Tseng
626dd129aa Bug 1302261 - Refresh Spec For Deleted Indexes. r=janv 2016-09-12 15:38:43 -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
Michael Layzell
c47fca1cd7 Bug 1018486 - Part 1: Changes in dom/, r=baku
MozReview-Commit-ID: 4tCUM4KRe81
2016-09-07 10:50:35 -04:00
Shawn Huang
ba9fa0d68a Bug 1267941 - Implement Storage API estimate() feature, r=janv,baku 2016-06-14 13:57:36 +01: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
b4cf4bec61 Bug 1264642 - Part 6. Mark JSStructuredCloneData as MOZ_NON_MEMMOVABLE and add specializations in nsTArray.h. r=froydnj
MozReview-Commit-ID: HltgzBnxMsn
2016-08-23 00:40:47 +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
Kan-Ru Chen
506dfe6ea3 Bug 1264642 - Part 4. Use BufferList to replace raw buffers in StructuredClone. r=baku r=billm r=jorendorff
In JS StructuredClone BufferList<SystemAllocPolicy> is typedef'd to
JSStructuredCloneData and use everywhere in gecko that stores structured
clone data.

This patch changed some raw pointers to UniquePtr<JSStructuredCloneData>
and some to stack allocated JSStructuredCloneData for better life time
management. Some parameters or methods are deleted because of changing
to the new data structure.

MessagePortMessage now has the exactly same structure with
ClonedMessageData. Maybe in the future they can be consolidated.

MozReview-Commit-ID: 1IY9p5eKLgv
2016-08-23 00:40:46 +08:00
Kan-Ru Chen
e4b3f7ccbb Bug 1264642 - Part 1. Remove unused methods from IDBObjectStore::StructuredCloneWriteInfo. r=baku
MozReview-Commit-ID: 8MIFD0MizOo
2016-08-23 00:40:45 +08:00
Ben Kelly
9d7b33a00b Bug 1293690 P2 Set explicit status levels to fail at when calling WorkerHolder::HoldWorker. r=baku 2016-08-18 07:11:04 -07: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
Phil Ringnalda
4083fafafc Backed out 10 changesets (bug 1290116, bug 1293690) for build bustage
CLOSED TREE

Backed out changeset bbc14d107fca (bug 1290116)
Backed out changeset a81b6ce5c25f (bug 1290116)
Backed out changeset e0b9c25b6125 (bug 1290116)
Backed out changeset 8e9a9ba04ce5 (bug 1290116)
Backed out changeset 2d5ad5e9ed20 (bug 1290116)
Backed out changeset eb7da0dbfc72 (bug 1290116)
Backed out changeset 6a4e8c92faae (bug 1290116)
Backed out changeset 0342d98afa10 (bug 1293690)
Backed out changeset d84b0768f0ce (bug 1293690)
Backed out changeset f9f62ade9508 (bug 1293690)
2016-08-17 21:16:43 -07:00
Ben Kelly
fa520e1fdd Bug 1293690 P2 Set explicit status levels to fail at when calling WorkerHolder::HoldWorker. r=baku 2016-08-17 20:01:35 -07: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
Bevis Tseng
b17713a4cb Bug 1271500 - Binary Key Support. r=janv
--HG--
extra : rebase_source : 3762fa91b4c068d7d0158a55911bc3f13b47a93f
2016-08-12 15:03:59 +08:00
Nicholas Nethercote
ca40b738e4 Bug 1294620 - Use infallible XPIDL attribute getters more. r=erahm.
This makes a lot of code more compact, and also avoids some redundant nsresult
checks.

The patch also removes a handful of redundant checks on infallible setters.

--HG--
extra : rebase_source : f82426e7584d0d5cddf7c2524356f0f318fbea7d
2016-08-12 15:19:29 +10: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
Jan de Mooij
c33bac8363 Bug 1292892 part 5 - Replace most nsContentUtils::RootingCx calls with dom::RootingCx. r=bz,terrence 2016-08-11 14:39:23 +02: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
Boris Zbarsky
fb2eb08b4d Bug 1289179. IDBRequest::SetResultCallback should expose its script owner to active JS before entering its compartment. r=baku 2016-07-27 11:05:36 -04:00
Carsten "Tomcat" Book
b9a6c687fa merge mozilla-inbound to mozilla-central a=merge 2016-07-25 15:50:41 +02: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
8b6316ec5f Merge mozilla-central to mozilla-inbound 2016-07-22 11:59:06 +02:00
Carsten "Tomcat" Book
c7846e126c Backed out changeset 16aa7041c009 (bug 1287107) for causing xpcshell and mac tests 2016-07-22 11:30:23 +02:00
Andrew McCreight
623b56a3f1 Bug 1287143 - Remove the window argument to SpecialPowers.exactGC(). r=jmaher
Cu.forceCC() is the same as DOMWindowUtils.cycleCollect(), but does
not require a window.
2016-07-19 13:13:00 +08:00
Fabrice Desré
f5b619fb28 Bug 1287107 - Making transition alive with gaia as chrome:// r=bholley,fabrice
MozReview-Commit-ID: 9uVUrmuVFXQ

--HG--
extra : rebase_source : d0c19fcda5c72ecdce3b0d0bbbafa5a7954d7a4c
2016-03-03 09:58:47 -08:00
Tom Tromey
5538d692d3 Bug 1286877 - do not set c-basic-offset for python-mode; r=gps
This removes the unnecessary setting of c-basic-offset from all
python-mode files.

This was automatically generated using

    perl -pi -e 's/; *c-basic-offset: *[0-9]+//'

... on the affected files.

The bulk of these files are moz.build files but there a few others as
well.

MozReview-Commit-ID: 2pPf3DEiZqx

--HG--
extra : rebase_source : 0a7dcac80b924174a2c429b093791148ea6ac204
2016-07-14 10:16:42 -06:00
Chris Peterson
b175c9fdd5 Bug 1277106 - Part 2: Expand MOZ_UTF16() strings to u"" string literals. r=Waldo 2016-07-20 22:03:25 -07: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
Xidorn Quan
76db18facb Bug 1284406 part 3 - Export ICU headers in include/unicode. r=glandium
MozReview-Commit-ID: FuwAgEGjhxm

--HG--
extra : source : c07ceab42b47b18a1e8d436e7c888bdd113575fa
2016-07-20 15:00:13 +10:00
Xidorn Quan
17ee95ed83 Bug 1284406 part 1 - Move warning suppression of C4577 to global level. r=glandium
MozReview-Commit-ID: 66TD5A3L73D

--HG--
extra : source : e35f507952ccb081e77d5ba78c1b0d2ed566ac73
2016-07-20 15:00:13 +10:00
Kyle Huey
18aef1bac2 Bug 1285327: Micro-optimize some IDB refcounting. r=froydnj 2016-07-20 11:46:48 +08:00
Fabrice Desré
7846da76d6 Bug 1287107 - Making transition alive with gaia as chrome:// r=bholley,fabrice
MozReview-Commit-ID: 9uVUrmuVFXQ

--HG--
extra : rebase_source : 20f6f0235667530c21aca4889b5d33e39c2d1a48
2016-03-03 09:58:47 -08:00
Aaron Klotz
6470186455 Bug 1268151: Clean up some dependencies in IPDL headers; r=billm
MozReview-Commit-ID: n0FkC1zcay

--HG--
extra : rebase_source : a56c34e5ab1fe9354be7b586a917b6eecff4cb31
2016-05-17 16:01:25 -06: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
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
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
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
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
Nathan Froyd
a44e8e3375 Bug 1261122 - don't needlessly construct nsAutoCString temporaries in dom/indexedDB; r=khuey
We can make ScriptErrorRunnable::DumpLocalized take an nsACString instead.
2016-03-31 13:14:47 -04:00
Bevis Tseng
c0ccb93e52 Bug 1198093 - Part 2: Set Default Locale Value in ICU Canonicalization Form. r=khuey 2016-03-30 11:23:50 +08:00
Bevis Tseng
47e9ad43d3 Bug 1198093 - Part 1: Expose indexedDB to System with [Exposed=System]. r=khuey 2016-03-30 11:22:14 +08:00
Andrea Marchesini
ed3b71bc67 Bug 1261072 - File::GetName() should be const, r=smaug 2016-04-01 11:50:16 +01:00
Alexandre Lissy
09d61ae31a Bug 1260441 - Never pass a null js context to OpenCursor() r=bz
MozReview-Commit-ID: 2Scs80wX411

--HG--
extra : rebase_source : 0d8d74a756a1b059fe0b516de292b0226740def7
2016-03-30 13:03:03 +02: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
fe5f7b4105 Bug 1259290: Part 5 - Remove the cx from WorkerFeature::Notify. r=bz 2016-03-28 10:28:14 -07:00
Bevis Tseng
4aca132dcc Bug 1254853 - Add a Helper to Report a ScriptError to the Main Thread. r=khuey 2016-03-16 15:12:17 +08:00
Boris Zbarsky
e3b2de6aa9 Bug 1255817 part 2. Get rid of AutoJSAPI::OwnsErrorReporting and AutoJSAPI::TakeOwnershipOfErrorReporting. r=bholley 2016-03-23 11:44:54 -04:00
Boris Zbarsky
ede5a13ec4 Bug 1257725 part 5. Get rid of ThreadsafeAutoJSContext usage in IDBRequest::CaptureCaller. r=khuey 2016-03-23 11:02:57 -04:00
Boris Zbarsky
5ebb7a4795 Bug 1257725 part 4. Get rid of ThreadsafeAutoJSContext usage in IndexedDB code, except for IDBRequest::CaptureCaller. r=khuey 2016-03-23 11:02:57 -04: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
Andrea Marchesini
18858bf144 Bug 1173320 - patch 1/8 - Implement Directory object as string and not as BlobImpl, r=smaug 2016-03-20 11:56:10 +01:00
Phil Ringnalda
b47ec4d2bd Backed out 8 changesets (bug 1173320) for adding dom/filesystem/tests/test_basic.html without making it work on Android
Backed out changeset 7e3a105b9160 (bug 1173320)
Backed out changeset 094819fbb07f (bug 1173320)
Backed out changeset 23b0e55ff1db (bug 1173320)
Backed out changeset 8bf8e2fcedad (bug 1173320)
Backed out changeset 3de390c6f47f (bug 1173320)
Backed out changeset fb298010e12e (bug 1173320)
Backed out changeset f1a965c2f796 (bug 1173320)
Backed out changeset 176128ba757f (bug 1173320)
2016-03-19 19:44:22 -07:00
Andrea Marchesini
232e5767b0 Bug 1173320 - patch 1/8 - Implement Directory object as string and not as BlobImpl, r=smaug 2016-03-19 22:29:46 +01:00
Ryan VanderMeulen
ac97cbbe14 Backed out 8 changesets (bug 1173320) for bustage.
Backed out changeset e5c224d964bc (bug 1173320)
Backed out changeset db971ba7c26d (bug 1173320)
Backed out changeset cd7e79d9a750 (bug 1173320)
Backed out changeset 56bbea4fe199 (bug 1173320)
Backed out changeset e94ced2f8e3c (bug 1173320)
Backed out changeset 401c1e7df8ea (bug 1173320)
Backed out changeset bf65b38f759e (bug 1173320)
Backed out changeset ac58a56021ac (bug 1173320)

DONTBUILD CLOSED TREE
2016-03-19 10:52:12 -04:00
Andrea Marchesini
f1f32823dd Bug 1173320 - patch 1/8 - Implement Directory object as string and not as BlobImpl, r=smaug 2016-03-19 14:32:18 +01: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
Boris Zbarsky
547ab7b66c Bug 1257422 part 1. Add a way to do IDBObjectStore::OpenCursor without a JSContext if we are not passing a keyrange. r=khuey 2016-03-17 23:23:55 -04: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
6845def215 Bug 1182987 - Part 4: Add a test for QuotaExceededError recovery and the new "cleanup" transaction type; r=baku 2016-03-15 07:00:44 +01: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
Gregory Szorc
33ce723300 Bug 1256535 - Disable C4577 to unblock compilation on VS2015; r=poiru
The previous disabling of this warning on just Key.cpp was not
sufficient because another file from the unified sources list appears
to include the header exhibiting the warning.

MozReview-Commit-ID: rR2XXigTJU

--HG--
extra : rebase_source : b34b42fd729163775cdb2e4c50bb0e6099824112
2016-03-14 21:44:22 -07:00
Gregory Szorc
1153138e92 Bug 1256535 - Disable C4577 to unblock compilation on VS2015; r=poiru
As part of unblocking building with VS2015u1 in automation, I'm mass
disabling compiler warnings that are turned into errors. This is not
the preferred mechanism to fix compilation warnings. So hopefully
this patch never lands because someone insists of fixing the underlying
problem instead. But if it does land, hopefully the workaround is
only temporary.

MozReview-Commit-ID: CnmHTfEZpBK

--HG--
extra : rebase_source : acf0a7fad4efc35e7f7281023aec7056bd2049ee
2016-03-14 21:24:54 -07:00
Boris Zbarsky
a4269f22fb Bug 1255840. Get rid of the AutoJSAPI usage in IDBFactory. r=khuey 2016-03-14 20:47:13 -04:00
Marco Castelluccio
2fb9c40ec1 Bug 1250453 - Remove DOMApplicationRegistry.allAppsLaunchable property and related testing API. r=myk 2016-03-14 16:29:11 +00:00
Boris Zbarsky
c1e007e11b Bug 1255181. Remove AutoJSAPI::InitWithLegacyErrorReporting. r=bholley 2016-03-09 19:02:25 -05:00
Andrew Halberstadt
280b1b39cd Bug 1250616 - Sign indexedDB-test extension for mochitest, r=khuey
For details on extensions in automation and signing, see:
https://wiki.mozilla.org/EngineeringProductivity/HowTo/SignExtensions

MozReview-Commit-ID: 6unn8eJl9PW

--HG--
extra : rebase_source : 3eb93bfa515b7b94b42c1122c1e22903638af562
extra : amend_source : 6717aff0d64992639d0ad9a5cb3c185edfbfb3f2
extra : intermediate-source : 502cf531ec266e44fdfbb1974277bf75282cf066
extra : source : 7566245cc5ea9e15415e71a2599ec72c953189df
2016-02-26 10:45:14 -05:00
Gabriele Svelto
7866c2e34a Bug 1253807 - Use the shared UniqueFreePtr class r=bent 2016-03-09 12:24:03 +01:00
Phil Ringnalda
4b0cdb5de3 Back out 3 changesets (bug 1250616, bug 1251372) for failing browser_checkAddonCompatibility.js after the version bump
CLOSED TREE

Backed out changeset 4fa5b5a25f04 (bug 1251372)
Backed out changeset 502cf531ec26 (bug 1250616)
Backed out changeset 2f25d03334b2 (bug 1250616)
2016-03-08 19:04:46 -08:00
Andrew Halberstadt
41118c27b8 Bug 1250616 - Sign indexedDB-test extension for mochitest, r=khuey
For details on extensions in automation and signing, see:
https://wiki.mozilla.org/EngineeringProductivity/HowTo/SignExtensions

MozReview-Commit-ID: 6unn8eJl9PW

--HG--
extra : rebase_source : b3ec2d27aa2be197e1240edc22f349a3fff0530c
extra : amend_source : bb01dd6a8d27197ed1e70a694d2142417dd18c23
extra : intermediate-source : 10d85d4a79c2684f12deb4dd33468d97d03fb0dc
extra : source : 7566245cc5ea9e15415e71a2599ec72c953189df
2016-02-26 10:45:14 -05:00
Sebastian Hengst
9b21582e0d Backed out changeset 10d85d4a79c2 (bug 1250616) for breaking extension worker-test@mozilla.org in test setup. r=backout 2016-03-08 16:11:51 +01:00
Andrew Halberstadt
03780d09dd Bug 1250616 - Sign indexedDB-test extension for mochitest, r=khuey
For details on extensions in automation and signing, see:
https://wiki.mozilla.org/EngineeringProductivity/HowTo/SignExtensions

MozReview-Commit-ID: 6unn8eJl9PW

--HG--
extra : rebase_source : 0be434fc1c98f738efd397c48535c33191177f9d
extra : amend_source : bb01dd6a8d27197ed1e70a694d2142417dd18c23
extra : source : 7566245cc5ea9e15415e71a2599ec72c953189df
2016-02-26 10:45:14 -05: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
J. Ryan Stinnett
2a55d065b7 Bug 1238160 - Rename OriginAttributes.mInBrowser and associated methods. r=bz,mayhemer
This change renames OriginAttributes.mInBrowser to mInIsolatedMozBrowser and
nsIPrincipal::GetIsInBrowserElement to GetIsInIsolatedMozBrowserElement.  Other
methods that pass these values around also have name changes.

Tokens such as "inBrowser" have previously been serialized into cache keys, used
as DB column names, stored in app registries, etc.  No changes are made to any
serialization formats.  Only runtime method and variable names are updated.

No behavior changes are made in this patch, so some renamed methods may have
nonsensical implementations.  These are corrected in subsequent patches
focused on behavior.

MozReview-Commit-ID: 66HfMlsXFLs
2016-03-02 10:35:56 -06:00
Carsten "Tomcat" Book
30e5302af8 Merge mozilla-central to mozilla-inbound 2016-03-01 15:25:31 +01:00
Jan Varga
3c44d5ea54 Bug 1248550 - Address review comments; r=khuey 2016-03-01 10:46:03 +01:00
Jan Varga
446a305dec Bug 1248550 - Part 7: Improve the test for idle maintenance to trigger interference between database maintenance and normal database operations; r=khuey 2016-03-01 10:45:17 +01:00
Jan Varga
75f3cc4202 Bug 1248550 - Part 6: Move database maintenance specific methods from QuotaClient to DatabaseMaintenance; r=khuey 2016-03-01 10:45:10 +01:00
Jan Varga
b31c7759b9 Bug 1248550 - Part 5: Move AutoProgressHandler from QuotaClient to DatabaseMaintenance; r=khuey 2016-03-01 10:45:04 +01:00
Jan Varga
216919952d Bug 1248550 - Part 4: Check FactoryOp objects before running a database maintenance and check for DatabaseMaintenance before dispatching a FactoryOp; r=khuey 2016-03-01 10:44:59 +01:00
Jan Varga
1b90de1845 Bug 1248550 - Part 3: Introduce a new object/runnable for database maintenance; r=khuey 2016-03-01 10:44:53 +01:00
Jan Varga
13351dbab0 Bug 1248550 - Part 2: Move GetOrCreateThreadPool() to correct place; r=khuey 2016-03-01 10:44:48 +01:00
Jan Varga
8857cde431 Bug 1248550 - Part 1: Move main idle maintenance logic into a new object Maintenance; r=khuey 2016-03-01 10:44:39 +01:00
Wes Kocher
260756840b Backed out changeset 7566245cc5ea (bug 1250616) for test_globalObjects_other.xul failures
MozReview-Commit-ID: DFurflAIJ5U
2016-02-29 12:37:41 -08:00
Boris Zbarsky
663b9bd562 Bug 1252091. Add/RemoveFeature don't need a JSContext argument. r=khuey 2016-02-29 14:52:42 -05:00
Andrew Halberstadt
7c7ceb967f Bug 1250616 - Sign indexedDB-test extension for mochitest, r=khuey
For details on extensions in automation and signing, see:
https://wiki.mozilla.org/EngineeringProductivity/HowTo/SignExtensions

MozReview-Commit-ID: 6unn8eJl9PW

--HG--
extra : rebase_source : c11c53c129cb16c5ccb6dd03364768cb18779f6b
extra : amend_source : ebf04756b516843738be361696383c35b187a12e
2016-02-26 10:45:14 -05:00
Carsten "Tomcat" Book
83adb66526 merge mozilla-inbound to mozilla-central a=merge 2016-03-01 12:01:58 +01:00
Kyle Huey
ef22731cc4 Bug 1251498: Implement IDBKeyRange.includes(). r=baku 2016-02-26 13:58:47 -08:00
Boris Zbarsky
7345c5edb1 Bug 1251045 part 4. Remove the JSContext argument of WorkerRunnable::Dispatch. r=khuey 2016-02-26 15:23:12 -05:00
Florian Quèze
7d8de4e227 Bug 1220748 - Enable browser_permissionsPromptDeny.js in e10s, r=felipe. 2016-02-29 11:44:49 +01:00
Kyle Huey
723d39a8d6 Bug 1085575: Account for another potential race when asserting metadata is consistent. r=bent 2016-02-23 11:56:16 -08:00
Andrew McCreight
b80e656e9e Bug 1247679, part 3 - Replace NS_IMPL_CYCLE_COLLECTION_TRACE_JSVAL_MEMBER_CALLBACK with JS_MEMBER. r=smaug 2016-02-22 10:11:02 -08:00
Xidorn Quan
7e896cbc31 Bug 1248851 part 3 - Fix a potential double-free issue in indexedDB. r=sicking
MozReview-Commit-ID: F3WpoJ5AE0j

--HG--
extra : source : 02d1d836aa6597fad142318707fc5bbcbf7e227d
2016-02-20 11:06:25 +08:00
Xidorn Quan
14b0b94ee9 Bug 1248851 part 2 - Remove redundant release() calls in indexedDB code. r=sicking
MozReview-Commit-ID: 8PpNcYfQ4IP

--HG--
extra : source : 00b7d6e773a9bbae902469913db6da350a803b6f
2016-02-20 11:06:25 +08:00
Andrew McCreight
0529e722df Bug 1243577, part 3 - Make test_blob_file_backed.js use SpecialPowers.createFiles(). r=khuey
This method is e10s-compatible. It is async, so it requires
rejiggering the test a little. This also requires fixing up a shim
version for xpcshell tests. Finally, this test is the only user of
SpecialPowers.createDOMFiles, so I removed it.
2016-02-18 09:09:28 -08:00
Andrew McCreight
d9e6cb799e Bug 1243577, part 2 - Change file permissions to match SpecialPowers.createFiles. r=khuey
I don't think that this matters, but I split it into a separate change
set to avoid hiding it.
2016-02-18 09:09:28 -08:00
Andrew McCreight
6bb770cba7 Bug 1243577, part 1 - Delete trailing whitespace in xpcshell-head-parent-process.js. r=khuey 2016-02-18 09:09:28 -08:00
Kyle Huey
31dabb4558 Bug 1247117: De-namespace much of IndexedDB. r=baku 2016-02-16 13:46:08 -08:00
Aidin Gharibnavaz
6863090c8a Bug 1235830 - Renaming GetInternalNSEvent to WidgetEvent, in nsIDOMEvent r=smaug
MozReview-Commit-ID: Hm8Owq17KXn

--HG--
extra : transplant_source : 2%82%D5%89%19%94%7C%E7%CA1%99%B5%24%1F5%E1%C0%1F%DE%07
2016-02-12 19:10:07 +03:30
ISHIKAWA, Chiaki
be2b50a7f8 Bug 1248252 - Improper outdated octal constant syntax in M-C tree. Use '0o' prefix. r=dao
Be warned. Do not attemp to change the .js "test" source code in ./js
They are meant to check

 - the outdated 0666 octal constant is still parsed correctly,
 - the outdated 0666 octal constant raises syntax error flag
   in strict mode, etc.

So leave them alone.
2016-02-15 08:57:00 +01:00
Kyle Huey
590c6ec6dd Bug 1150737: Make executeSoon work properly on workers, enable tests. r=bent 2016-02-10 22:35:50 -08:00
Jan Varga
9b4516ad03 Bug 1183959 - Move FlushPendingFileDeletions() from PContent to PBackground; r=khuey 2016-02-10 16:11:25 +01:00
Myk Melez
a6aff185d2 Bug 1238576 - disable mozApps API on desktop/Android; r=ehsan,ochameau,bz,mcmanus,jmaher,marco 2016-02-08 11:24:22 -08:00
Birunthan Mohanathas
690e6fe38b Bug 1235261 - Part 3: Switch remaining uses of AutoFallibleTArray to AutoTArray. r=froydnj
This is effectively a no-op because the affected array operations already use
`mozilla::fallible`.
2016-02-02 17:36:30 +02:00
Birunthan Mohanathas
9137955c65 Bug 1235261 - Part 2: Switch some uses of AutoFallibleTArray to AutoTArray. r=froydnj
This changes some function signatures to take a nsTArray<T>& instead of a
FallibleTArray<T>& because AutoTArray does not inherit from FallibleTArray.

This is effectively a no-op because the affected array operations already use
`mozilla::fallible`.
2016-02-02 17:36:30 +02:00
Birunthan Mohanathas
d7371d07d0 Bug 1235261 - Part 1: Rename nsAutoTArray to AutoTArray. r=froydnj 2016-02-02 17:36:30 +02:00
Phil Ringnalda
f82794ec09 Bug 1229376 - Downgrade lastVacuumSize > 0 assertion to an NS_ASSERTION so we don't have to star it all over the place, rs=khuey 2016-01-31 16:59:44 -08:00