Bill McCloskey
224d56eb18
Bug 1377222 - Eliminate nsITimer::InitWithFuncCallback in favor of InitWithNamedFuncCallback (r=froydnj)
...
MozReview-Commit-ID: 9zN9aAd7daA
2017-07-03 16:19:56 -07:00
Bill McCloskey
f115503a0b
Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
...
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-26 14:19:58 -07:00
Nicholas Nethercote
58786e1ea7
Bug 1375392 - Tweak the PROFILER_LABEL* macros. r=mstange.
...
This patch makes the following changes to the macros.
- Removes PROFILER_LABEL_FUNC. It's only suitable for use in functions outside
classes, due to PROFILER_FUNCTION_NAME not getting class names, and it was
mostly misused.
- Removes PROFILER_FUNCTION_NAME. It's no longer used, and __func__ is
universally available now anyway.
- Combines the first two string literal arguments of PROFILER_LABEL and
PROFILER_LABEL_DYNAMIC into a single argument. There was no good reason for
them to be separate, and it forced a '::' in the label, which isn't always
appropriate. Also, the meaning of the "name_space" argument was interpreted
in an interesting variety of ways.
- Adds an "AUTO_" prefix to PROFILER_LABEL and PROFILER_LABEL_DYNAMIC, to make
it clearer they construct RAII objects rather than just being function calls.
(I myself have screwed up the scoping because of this in the past.)
- Fills in the 'js::ProfileEntry::Category::' qualifier within the macro, so
the caller doesn't need to. This makes a *lot* more of the uses fit onto a
single line.
The patch also makes the following changes to the macro uses (beyond those
required by the changes described above).
- Fixes a bunch of labels that had gotten out of sync with the name of the
class and/or function that encloses them.
- Removes a useless PROFILER_LABEL use within a trivial scope in
EventStateManager::DispatchMouseOrPointerEvent(). It clearly wasn't serving
any useful purpose. It also serves as extra evidence that the AUTO_ prefix is
a good idea.
- Tweaks DecodePool::SyncRunIf{Preferred,Possible} so that the labelling is
done within them, instead of at their callsites, because that's a more
standard way of doing things.
--HG--
extra : rebase_source : 318d1bc6fc1425a94aacbf489dd46e4f83211de4
2017-06-22 17:08:53 +10:00
Chris Peterson
4ef47bc0c7
Bug 1373525 - dom/indexedDB: Remove unused classes and member functions. r=bevis
...
The UpgradeSchemaFrom17_0To18_0Helper class is never instantiated, so its constructor and destructor don't need to be define.
dom/base/nsContentUtils.cpp:529:21 [-Wunused-member-function] unused member function 'GetResult'
dom/indexedDB/ActorsParent.cpp:2715:3 [-Wunused-member-function] unused member function 'UpgradeSchemaFrom17_0To18_0Helper'
dom/indexedDB/ActorsParent.cpp:2720:3 [-Wunused-member-function] unused member function '~UpgradeSchemaFrom17_0To18_0Helper'
dom/indexedDB/ActorsParent.cpp:6464:3 [-Wunused-member-function] unused member function 'GetPrincipalInfo'
dom/indexedDB/ActorsParent.cpp:6545:3 [-Wunused-member-function] unused member function 'ReleaseTransactionThreadObjects'
dom/indexedDB/ActorsParent.cpp:6548:3 [-Wunused-member-function] unused member function 'ReleaseBackgroundThreadObjects'
dom/indexedDB/ActorsParent.cpp:7710:3 [-Wunused-member-function] unused member function 'operator<'
dom/indexedDB/ActorsParent.cpp:7753:3 [-Wunused-member-function] unused member function 'IsOtherProcessActor'
dom/quota/ActorsParent.cpp:809:3 [-Wunused-member-function] unused member function 'GetState'
dom/quota/StorageManager.cpp:76:3 [-Wunused-member-function] unused member function 'GetType'
MozReview-Commit-ID: FbfMj2YJ4Fx
--HG--
extra : source : a38727295681d5368ed05a1b2758599f4debc424
extra : intermediate-source : 2010739762c276b15d8431d2df4725fb8281d549
extra : histedit_source : e9e4eb1c7d7813c6dda7ded023de4bd6e7b4b52a
2017-06-15 00:59:17 -07:00
Carsten "Tomcat" Book
8a1350b5a6
Backed out changeset 4f6302a98ae4 (bug 1372405)
...
--HG--
extra : rebase_source : 41632f3158e88e692809731394a683d065a73dfb
2017-06-21 13:59:26 +02:00
Bill McCloskey
6b3e84ed5f
Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
...
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-20 21:44:11 -07:00
Carsten "Tomcat" Book
ea1b86680c
Backed out changeset 9846de3bd954 (bug 1372405)
...
--HG--
extra : rebase_source : 5d4a48e8ec394c329994689d938d2a6e9b2752b0
2017-06-20 08:27:02 +02:00
Bill McCloskey
4592152411
Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
...
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-19 22:25:47 -07:00
Jan de Mooij
83f290de99
Bug 1370608 part 1 - Move newEnumerate hook from ObjectOps to ClassOps. r=evilpie,bz
2017-06-14 10:37:44 +02:00
Bill McCloskey
aefa2aa5da
Bug 1365097 - Convert NS_GetCurrentThread uses in dom (except for dom/media) (r=smaug)
...
For the Quatum DOM project, it's better to work in terms of event targets than
threads. This patch converts DOM code to operate on event targets rather than
threads, when possible.
MozReview-Commit-ID: 5FgvpKadUA2
2017-06-12 20:20:08 -07:00
Bevis Tseng
e98d22391d
Bug 1366647 - Adopt NS_ASSERT_OWNINGTHREAD for PRThread equality. r=janv
...
MozReview-Commit-ID: 4j1ifEtrsvD
2017-06-07 13:55:00 +08:00
Jan Varga
2ab8c242dc
Bug 1356824 - Fix a typo in the comments; r=btseng
2017-06-07 08:57:57 +02:00
Jan Varga
bcf0c87a3a
Bug 1356824 - Don't clear mWaitingFactoryOp without holding a self reference in (Open|Delete)DatabaseOp::NoteDatabaseClosed(). r=btseng
...
Remove now useless self reference in OpenDatabaseOp::SendResults(). Add comments for how to call
FactoryOp::Run() safely and also add comments to all the call sites. This prevents a self destruction
while Run() (or a method that is called by Run()) is still being executed. Also fix
TransactionDatabaseOperationBase which also calls Run() directly in NoteContinueReceived().
--HG--
extra : rebase_source : dcc5f6e7e2974e8e0730687dd0dedac9d3e60060
2017-06-01 13:08:52 -04:00
Luke Wagner
00312ec84c
Bug 1351488 - Baldr: remove unintentional shadowing of 'rv' (r=janv)
...
MozReview-Commit-ID: 3oggzFUoqYP
2017-05-24 10:23:02 -05:00
Jan Varga
148a63cc3f
Bug 1360185 - Use of IPCBlob in IndexedDB - part 4 - IPCBlob and sharing files when used by IDB, r=baku
2017-05-18 09:50:57 +02:00
Andrea Marchesini
335ccef6d3
Bug 1360185 - Use of IPCBlob in IndexedDB - part 3 - IPCBlob must support fileId and fullPath values for indexedDB, r=janv
...
These 2 values are used only for testing, but they are extremely useful.
2017-05-23 07:51:13 +02:00
Andrea Marchesini
f9c4fde785
Bug 1360185 - Use of IPCBlob in IndexedDB - part 1 - Replacement of PBlob with IPCBlob, r=janv
2017-05-23 07:50:33 +02:00
Nathan Froyd
c1d1748428
Bug 1359490 - add an event loop spinning abstraction function; r=gerald
...
This function is arguably nicer than calling NS_ProcessNextEvent
manually, is slightly more efficient, and will enable better auditing
for NS_ProcessNextEvent when we do Quantum DOM scheduling changes.
2017-05-15 09:34:19 -04:00
Andrea Marchesini
18368ca143
Bug 1359087 - Use IPCBlob in FileHandle - part 4 - FileHelper::SyncCopy must work with asyncInputStream, r=asuth
2017-05-09 22:35:43 +02:00
Jan Varga
a5802cc08e
Bug 1339826 - Part 3: Add a self reference in Maintenance::Finish() to prevent self destruction while the method is still being executed; r=btseng
2017-04-28 17:43:03 +02:00
Jan Varga
b8c306d6f2
Bug 1339826 - Part 2: Warn if a maintenance finishes with an error; r=btseng
2017-04-28 17:42:53 +02:00
Jan Varga
a37d570a42
Bug 1339826 - Part 1: Don't assume that some nsIFile methods can't ever fail; r=btseng
2017-04-28 17:42:39 +02:00
Bill McCloskey
207af130a2
Bug 1343396 - Split CycledCollectedJSContext and XPCJSContext into separate context and runtime classes (r=mccr8)
...
To run JS in separate cooperative threads, we need to split up per-thread state
from per-runtime state. This patch does that for XPConnect.
MozReview-Commit-ID: 407SlJ7nR6v
2017-04-18 17:01:04 -07:00
Sajid Ahmed
591da76059
Bug 1007034 - Add console warnings for the deprecated BindXXXParameter methods in mozIStorageBaseStatement and replace calls to the deprecated methods in dom/indexedDB/ActorsParent.cpp. r=mak
...
--HG--
extra : rebase_source : ac32534d36959ff7f3a1c3a382319e6de4225c2f
2017-04-05 14:08:25 -04:00
Bevis Tseng
26e1690d7b
Bug 1349158 - Update Key Generator algorithm specified in IDB v2.0. r=janv
...
KeyGenerator in [1] has been updated to cover the corner case of the
explicit key is not in the range of 1 ~ 2^53.
WPT of keygenerator-explicit.html improve the test coverage of these
corner cases.
[1] http://w3c.github.io/IndexedDB/#possibly-update-the-key-generator
2017-03-22 15:21:08 +08:00
Jan Varga
ee8bdbeba6
Bug 1348660 - Part 6: Rename QuotaManager::IsOriginWhitelistedForPersistentStorage() to QuotaManager::IsOriginInternal(); r=btseng
2017-03-22 12:14:09 +01:00
Jan Varga
ae1ee28451
Bug 1348660 - Part 3: Separate the canceled state out of UsageInfo; r=btseng
2017-03-22 12:13:54 +01:00
Tom Tung
b21732dac3
Bug 1298329 - Part 1: Implement persist/persisted in QuotaManager and expose them to QuotaManagerService; r=janv
2016-08-25 10:19:31 +08:00
Jan Varga
2c456d0807
Bug 1339081 - Part 23: Treat it as an error if the origin stored in the database doesn't match the origin used to open the database; r=asuth
2017-03-06 18:40:37 +01:00
Jan Varga
b7172cf3d7
Bug 1339081 - Part 21: Rename file manager directories as part of new upgrade helper; r=asuth
2017-03-06 18:40:31 +01:00
Jan Varga
0656215c6c
Bug 1339081 - Part 20: Rationalize IndexedDB origin initialization code (preparation for sharing with a new upgrade method); r=asuth
2017-03-06 18:40:28 +01:00
Jan Varga
7903eab8b6
Bug 1339081 - Part 19: Strip obsolete origin attributes in IndexedDB databases (needed for bug 1314361), original patch by Kris Maglione; r=asuth
2017-03-06 18:40:25 +01:00
Jan Varga
928e24d75d
Bug 1311057 - Part 3: Code simplification and cleanup after isApp removal; r=asuth
2017-03-06 18:38:44 +01:00
Jan Varga
dcc35b89e6
Bug 1311057 - Part 2: Remove isApp from quota manager and its clients; r=asuth
2017-03-06 18:38:42 +01:00
Tom Tromey
d2667a2b27
Bug 1060419 - make AppendPrintf and nsPrintfCString use Printf.h, r=froydnj
...
MozReview-Commit-ID: 2E8FoiNxU8L
--HG--
extra : rebase_source : 810ac727bef0751f24edea18c52e0ec170bf367d
2016-12-14 09:32:21 -07:00
Tom Tromey
5f8f360823
Bug 1060419 - make log_print use Printf.h, r=froydnj
...
MozReview-Commit-ID: BIZ1GQEZ1vs
--HG--
extra : rebase_source : 2f1f0aa12493c44f352d9a7e8683e7bb72d2d75b
2016-12-15 20:16:31 -07:00
Andrea Marchesini
3043646e52
Bug 1339871 - Splitting dom/file/File.{h,cpp}, r=smaug
...
--HG--
rename : dom/file/File.cpp => dom/file/BaseBlobImpl.cpp
rename : dom/file/File.h => dom/file/BaseBlobImpl.h
rename : dom/file/File.cpp => dom/file/Blob.cpp
rename : dom/file/File.h => dom/file/Blob.h
rename : dom/file/File.cpp => dom/file/BlobImpl.cpp
rename : dom/file/File.h => dom/file/BlobImpl.h
rename : dom/file/File.cpp => dom/file/EmptyBlobImpl.cpp
rename : dom/file/File.h => dom/file/EmptyBlobImpl.h
rename : dom/file/File.cpp => dom/file/FileBlobImpl.cpp
rename : dom/file/File.h => dom/file/FileBlobImpl.h
rename : dom/file/File.cpp => dom/file/MemoryBlobImpl.cpp
rename : dom/file/File.h => dom/file/MemoryBlobImpl.h
rename : dom/file/File.cpp => dom/file/StreamBlobImpl.cpp
rename : dom/file/File.h => dom/file/StreamBlobImpl.h
rename : dom/file/File.h => dom/file/StringBlobImpl.h
rename : dom/file/File.h => dom/file/TemporaryBlobImpl.h
2017-02-16 18:26:38 +01:00
Jan Varga
f85e997184
Bug 1313176 - Fail index/cursor operations gracefully if they need preprocessing. This fixes the crash when devtools try to inspect idb databases with WebAssembly modules). It's a temporary fix until we implement preprocessing for indexes and cursors. A bunch of new tests is added to test indexes and cursors with wasm; r=asuth
2017-02-08 11:12:00 +01:00
Andrew Sutherland
45cc729bbb
Bug 1335054 - Fix IndexedDB blob writing ownership race. r=janv
...
--HG--
extra : rebase_source : 1b67f4f1977233a196616f041622fa1bc4d8f0d9
2017-02-07 01:18:33 -05:00
Aakar Dwivedi
995c71cd97
Bug 1334989 - Parameter in the declaration of the function made same as the one in definition of the function; r=janv
2017-02-05 08:17:45 +01:00
Andrew Sutherland
8e593b76bd
Bug 1319531 - Ensure all streams provided by DatabaseFile can be read without generating NS_BASE_STREAM_WOULD_BLOCK errors. r=janv
...
IndexedDB database operations are written such that they must execute
synchronously. For this reason, the add/put operation reads/writes its
Blobs to disk in a synchronous fashion. However, with the introduction
of SendStream-backed Blobs for large (>1 MiB) blobs whose contents are
streamed to the parent replacing nsStringInputStream-backed Blobs
(whose contents were sent up in a single IPC message that might exceed
the size limit and cause a crash), this has no longer been a safe
assumption. However, the problems weren't immediately obvious because
most pre-WASM Blobs are smaller than the 1MiB threshold and even when
they exceeded the size, their memory-backed contents could rapidly be
sent to the parent via IPC, making NS_BASE_STREAM_WOULD_BLOCK errors
rare/hard to reproduce. (rr and its enforced single-threading is a
good way to reproduce, however. Also, see the testing patch on the
bug that introduces artificial delays into SendStream.)
Included SpecialPowersObserver.jsm minor changes to "CreateFiles":
- appendRelativePath is used instead of appendPath because appendPath
only allows a single path component to be appended. In other words,
file creation is limited to files at the root of the profile
directory using appendPath, which is needlessly limiting.
- outStream is now closed even if no data is provided. This is
essential on windows where file deletion only occurs when all handles
are closed. Without this fix, "RemoveFiles" side-effect of deleting
the created files might not take effect until garbage collection runs
and collects the outStream.
2017-01-30 01:07:27 -05: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
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
Ehsan Akhgari
d07f79a266
Bug 1318210 - Remove nsIAppsService; r=baku
2016-11-17 10:41:36 -05: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
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
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
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
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
Andrea Marchesini
0e290de2a9
Bug 1313907 - Remove a warning in IDB ActorParent.cpp, r=me
2016-10-30 10:02:26 +01: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
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
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
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
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
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
Jan Varga
9b4516ad03
Bug 1183959 - Move FlushPendingFileDeletions() from PContent to PBackground; r=khuey
2016-02-10 16:11:25 +01: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
Phil Ringnalda
d381b4bca6
Back out 7 changesets (bug 1235261) for cpptest failures in TestTArray
...
CLOSED TREE
Backed out changeset d66c3f19a210 (bug 1235261)
Backed out changeset 467d945426bb (bug 1235261)
Backed out changeset 32b61df13142 (bug 1235261)
Backed out changeset c50bb8ed4196 (bug 1235261)
Backed out changeset 0ff0fa6fe81f (bug 1235261)
Backed out changeset df70e89669da (bug 1235261)
Backed out changeset 064969357fc9 (bug 1235261)
2016-01-31 10:10:57 -08:00