Граф коммитов

274 Коммитов

Автор SHA1 Сообщение Дата
Andrea Marchesini a91dd40dff Bug 1024312 - Get rid of IDBDatabase.mozCreateFileHandle, r=janv,dom-workers-and-storage-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D59499

--HG--
extra : moz-landing-system : lando
2020-01-14 15:09:02 +00:00
Simon Giesecke e4ec4856f2 Bug 1600906 - Use std::move instead of swap, use const where then possible. r=dom-workers-and-storage-reviewers,ytausky
Depends on D57988

Differential Revision: https://phabricator.services.mozilla.com/D57989

--HG--
extra : moz-landing-system : lando
2020-01-09 14:43:57 +00:00
Simon Giesecke 77ea686b98 Bug 1600283 - Replaced use of nsAutoPtr by UniquePtr. r=dom-workers-and-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D55520

--HG--
extra : moz-landing-system : lando
2019-12-19 09:57:49 +00:00
Simon Giesecke d6cc618323 Bug 1600283 - Replaced use of nsAutoPtr by UniquePtr. r=dom-workers-and-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D55515

--HG--
extra : moz-landing-system : lando
2019-12-19 09:56:45 +00:00
Simon Giesecke 1fb48dd681 Bug 1600283 - Remove uses of already_AddRefed. r=dom-workers-and-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D55478

--HG--
extra : moz-landing-system : lando
2019-12-13 12:31:10 +00:00
Simon Giesecke 7e8ae185d6 Bug 1600283 - Reduce uses of plain pointers. r=dom-workers-and-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D55477

--HG--
extra : moz-landing-system : lando
2019-12-13 12:18:21 +00:00
Simon Giesecke 0d732b3ed3 Bug 1596129 - Extract CreateSortedDOMStringList function and reuse in IDBObjectStore::IndexNames. r=dom-workers-and-storage-reviewers,ytausky
Depends on D52867

Differential Revision: https://phabricator.services.mozilla.com/D52868

--HG--
extra : moz-landing-system : lando
2019-11-28 20:24:33 +00:00
Simon Giesecke 90427d7da3 Bug 1598164 - Align ReadyState with states defined in the spec. r=dom-workers-and-storage-reviewers,edenchuang
Differential Revision: https://phabricator.services.mozilla.com/D54322

--HG--
extra : moz-landing-system : lando
2019-11-28 16:00:29 +00:00
Simon Giesecke 55a2f652bc Bug 1598164 - Use scoped enums in IDBTransaction. r=dom-workers-and-storage-reviewers,edenchuang
Differential Revision: https://phabricator.services.mozilla.com/D54321

--HG--
extra : moz-landing-system : lando
2019-11-27 10:54:57 +00:00
Simon Giesecke be00b51583 Bug 1596129 - Use range-based for, std::find_if, std::unique and avoid insert-sort on a nsTArray in IDBDatabase::Transaction. r=dom-workers-and-storage-reviewers,ytausky
Depends on D52864

Differential Revision: https://phabricator.services.mozilla.com/D52865

--HG--
extra : moz-landing-system : lando
2019-11-21 12:38:12 +00:00
Simon Giesecke 2ac5e4e5ab Bug 1596129 - Make use of std::find_if in IDBDatabase::DeleteObjectStore. r=dom-workers-and-storage-reviewers,ttung
Depends on D52863

Differential Revision: https://phabricator.services.mozilla.com/D52864

--HG--
extra : moz-landing-system : lando
2019-11-21 11:01:55 +00:00
Simon Giesecke 9b32f09fd2 Bug 1596129 - Make use of std::find_if in IDBDatabase::CreateObjectStore. r=dom-workers-and-storage-reviewers,ttung
Depends on D52862

Differential Revision: https://phabricator.services.mozilla.com/D52863

--HG--
extra : moz-landing-system : lando
2019-11-20 15:18:33 +00:00
Simon Giesecke f81c6cb091 Bug 1596129 - Make use of std::transform, avoid doing an insert sort into an nsTArray in IDBDatabase::ObjectStoreNames. r=dom-workers-and-storage-reviewers,ttung
Depends on D52861

Differential Revision: https://phabricator.services.mozilla.com/D52862

--HG--
extra : moz-landing-system : lando
2019-11-21 08:55:38 +00:00
ssengupta 97bb846b1e Bug 1597959 - Return from IDBDatabase::RenameObjectStore immediately if aObjectStoreId and aName both match. r=sg
Differential Revision: https://phabricator.services.mozilla.com/D53947

--HG--
extra : moz-landing-system : lando
2019-11-21 11:54:40 +00:00
Dorel Luca 30c26d0a23 Backed out changeset a13d1af8d1b5 (bug 1558522) for Crashtest failures in reftest/tests/xpcom/string/crashtests/1113005.html. CLOSED TREE 2019-11-19 19:23:28 +02:00
Simon Giesecke f20a6e81d8 Bug 1558522 - Added test case from fuzzer. r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D48045

--HG--
extra : moz-landing-system : lando
2019-10-22 17:02:38 +00:00
Simon Giesecke 19128f8aae Bug 1497007 - Added explaining comments. r=ttung,asuth
Differential Revision: https://phabricator.services.mozilla.com/D47231

--HG--
extra : moz-landing-system : lando
2019-11-11 08:25:20 +00:00
Simon Giesecke 1bf29f747f Bug 1497007 - Use IDBTransaction::IsWriteAllowed to simplify code. r=ttung,asuth
Differential Revision: https://phabricator.services.mozilla.com/D47230

--HG--
extra : moz-landing-system : lando
2019-11-11 08:25:13 +00:00
Simon Giesecke deb959c93c Bug 1168606 - Resolved clang-tidy warnings. r=ttung,asuth
Differential Revision: https://phabricator.services.mozilla.com/D49274

--HG--
extra : moz-landing-system : lando
2019-11-08 13:22:28 +00:00
shindli 7c774ed0a3 Backed out 8 changesets (bug 1497007) for causing build bustages in /builds/worker/workspace/build/src/dom/indexedDB/IDBTransaction.cpp CLOSED TREE
Backed out changeset 15de0d72f1c4 (bug 1497007)
Backed out changeset 7056932f6422 (bug 1497007)
Backed out changeset 7304fae8c436 (bug 1497007)
Backed out changeset be22a95de04b (bug 1497007)
Backed out changeset 98ac48b5f1ef (bug 1497007)
Backed out changeset 562d3cda9fa3 (bug 1497007)
Backed out changeset 3f96e71be2e3 (bug 1497007)
Backed out changeset 3d9e86698c9f (bug 1497007)
2019-11-08 16:28:53 +02:00
Simon Giesecke 67ff3f2964 Bug 1497007 - Added explaining comments. r=ttung,asuth
Differential Revision: https://phabricator.services.mozilla.com/D47231

--HG--
extra : moz-landing-system : lando
2019-11-08 13:33:45 +00:00
Simon Giesecke b390f011e5 Bug 1497007 - Use IDBTransaction::IsWriteAllowed to simplify code. r=ttung,asuth
Differential Revision: https://phabricator.services.mozilla.com/D47230

--HG--
extra : moz-landing-system : lando
2019-11-08 13:33:33 +00:00
Simon Giesecke 7e3b8fe633 Bug 1558522 - Ensure that file actors created after the database was closed are expired. r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D48046

--HG--
extra : moz-landing-system : lando
2019-10-09 03:21:22 +00:00
Simon Giesecke bd2e4939bc Bug 1168606 - Remove duplication in uses of IDB_LOG_MARK. r=ttung,asuth
Differential Revision: https://phabricator.services.mozilla.com/D46576

--HG--
extra : moz-landing-system : lando
2019-09-27 10:11:45 +00:00
Andrea Marchesini da174a4757 Bug 1539407 - Use the correct global for DOMEventTargetHelper in IndexedDB, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D25041

--HG--
extra : moz-landing-system : lando
2019-03-29 18:05:11 +00:00
Daniel Varga 7af208ab28 Backed out changeset 98452610cfcc (bug 1539407) for browser-chrome failure at /builds/worker/workspace/build/src/dom/indexedDB/IDBRequest.cpp:284. On a CLOSED TREE
--HG--
extra : histedit_source : 236c5d6a7a4440a7b545c1ec5a0a72a8c5777b6b
2019-03-29 18:01:58 +02:00
Andrea Marchesini 788d12712b Bug 1539407 - Use the correct global for DOMEventTargetHelper in IndexedDB, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D25041

--HG--
extra : moz-landing-system : lando
2019-03-29 14:12:04 +00:00
violet 44ea792130 Bug 1507229 - Argument sanity check at CreateMutableFile() to avoid assertion failure r=janv
CreateMutableFile() doesn't allow empty name, we should check it before
further processing to avoid assertion failure.

Differential Revision: https://phabricator.services.mozilla.com/D23999

--HG--
extra : moz-landing-system : lando
2019-03-22 14:01:31 +00:00
Emilio Cobos Álvarez d2ed260822 Bug 1517241 - Rename nsIDocument to mozilla::dom::Document. r=smaug
Summary: Really sorry for the size of the patch. It's mostly automatic
s/nsIDocument/Document/ but I had to fix up in a bunch of places manually to
add the right namespacing and such.

Overall it's not a very interesting patch I think.

nsDocument.cpp turns into Document.cpp, nsIDocument.h into Document.h and
nsIDocumentInlines.h into DocumentInlines.h.

I also changed a bunch of nsCOMPtr usage to RefPtr, but not all of it.

While fixing up some of the bits I also removed some unneeded OwnerDoc() null
checks and such, but I didn't do anything riskier than that.
2019-01-03 17:48:33 +01:00
Sylvestre Ledru 265e672179 Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format
# ignore-this-changeset

--HG--
extra : amend_source : 4d301d3b0b8711c4692392aa76088ba7fd7d1022
2018-11-30 11:46:48 +01:00
Gabriele Svelto 266ef73c96 Bug 1503207 - Remove nsWeakPtr.h and cleanup all files including weak reference-related headers r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D10251

--HG--
extra : moz-landing-system : lando
2018-10-31 20:39:03 +00:00
Diego Pino Garcia 94e966fca7 Bug 1357561 - ConstraintError should mention which constraint is not being satisfied. r=tt
The creation of a new index or an object store may trigger a
ConstraintError if any of those elements already exists. Unfortunately,
the information provided by the ConstraintError is not enough to
determine the conditions that triggered the error.

This patch overrides the generic ConstraintError message with more
specific information about the duplicated index or object store.
2018-10-11 13:06:11 +02:00
Jeff Gilbert 5b753da289 Bug 1470325 - s/FooBinding/Foo_Binding/g - r=qdot
MozReview-Commit-ID: JtTcLL5OPF0
2018-06-26 17:05:01 -07:00
Kris Maglione 8134b33e89 Bug 1462964: Remove obsolete nsIDOMBlob interface. r=bz
MozReview-Commit-ID: 2HIlaSrvfBe

--HG--
extra : rebase_source : 944a6244dbfe1f0a37dd34a041d1329624a86f93
extra : histedit_source : d7859be664fed00f8504e40969480d3af3d674e7%2C4456b502db338bd06823654306e47c2583101396
2018-05-21 17:32:44 -07:00
Ben Kelly a32ccf78b7 Bug 1450266 P6 Make IDBDatabase invalidate any transactions on DisconnectFromOwner(). r=asuth 2018-04-03 17:10:17 -07:00
Jan Varga c0575771d3 Bug 1399322 - Don't assume that HoldWorker() call must always succeed. IDBTransaction::Create() is now fallible again; r=asuth 2017-09-20 10:53:14 +02:00
Andrew McCreight 78807d8776 Bug 1391005 - Eliminate NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION_INHERITED. r=peterv
Replace it with NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION, because it
has been the same for a while.

MozReview-Commit-ID: 5agRGFyUry1

--HG--
extra : rebase_source : 5388c56b2f6905c6ef969150f0c5b77bf247624d
2017-08-29 16:02:48 -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
Bevis Tseng a29c316c12 Bug 1352401 - Part 2: Count active IDBOpenRequest, IndexedDB databases/transactions. r=janv
--HG--
extra : rebase_source : 3f59fe1087678af689384b34db440960966e00af
2017-06-16 19:06:36 +08: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
Bevis Tseng dda9bab7b2 Backed out changeset 9c62253ad1a3 (Bug 1374675) 2017-06-21 11:01:52 +08: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
Bevis Tseng d6b1d1a397 Bug 1352401 - Part 2: Count active IDBOpenRequest, IndexedDB databases/transactions. r=janv
--HG--
extra : rebase_source : 87263d63be9021fe2493beb4b874c7e2749fd665
2017-06-16 19:06:36 +08: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 c9e62d9e30 Bug 1370519 - Part 1: Add missing includes to fix non-unified builds; r=btseng 2017-06-07 12:36:20 +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
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
Bevis Tseng 69a59cfe93 Bug 1328517 - Part 2: Add Assertion to Each ActorEventTarget. r=janv
MozReview-Commit-ID: DDQ0ytBiwm3

--HG--
extra : rebase_source : d3a724e9d69e492621948436cc68cf1d59cdb3a6
2017-02-10 15:13:45 +08:00