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

3535 Коммитов

Автор SHA1 Сообщение Дата
Butkovits Atila 927ad62c6a Backed out changeset a68ee4b09f92 (bug 1207753) for causing Hazard bustages. CLOSED TREE 2022-03-16 14:38:14 +02:00
Randell Jesup 7d4b5fae04 Bug 1207753 - Add MOZ_UNANNOTATED to all Mutexes/Monitors r=nika,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D140849
2022-03-16 12:01:14 +00:00
criss cc323f558f Backed out 2 changesets (bug 1577122) for causing xpcshell failures. CLOSED TREE
Backed out changeset d2ec4915e725 (bug 1577122)
Backed out changeset 63a236bcd713 (bug 1577122)
2022-03-14 17:19:01 +02:00
Gijs Kruitbosch 5022553169 Bug 1577122 - fix tests, r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D139861
2022-03-14 14:00:22 +00:00
Jens Stutte a272641640 Bug 1751371: Transform remaining MOZ_CRASH_UNLESS_FUZZING to normal assertions where appropriate. r=dom-storage-reviewers,jesup,janv
Differential Revision: https://phabricator.services.mozilla.com/D136599
2022-03-11 15:42:08 +00:00
Jens Stutte 3d0caaee90 Bug 1750525: Give IPC_FAIL a reason and remove obsolete MOZ_CRASH_UNLESS_FUZZING in Utils::RecvGetFileReferences. r=dom-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D136592
2022-03-11 15:42:08 +00:00
Jens Stutte 2e2cd2d694 Bug 1750525: Do not IPC_FAIL on dispatch failure in Utils::RecvDeleteMe. r=dom-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D136591
2022-03-11 15:42:08 +00:00
Jens Stutte 9d53f0a23b Bug 1750525: Give IPC_FAIL a reason and remove obsolete MOZ_CRASH_UNLESS_FUZZING in MutableFile::RecvGetFileId. r=dom-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D136590
2022-03-11 15:42:07 +00:00
Jens Stutte 1ff23e096d Bug 1750525: Give IPC_FAIL a reason and remove obsolete MOZ_CRASH_UNLESS_FUZZING in Cursor<CursorType>::RecvContinue. r=dom-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D136589
2022-03-11 15:42:07 +00:00
Jens Stutte 043102c5ac Bug 1750525: Give IPC_FAIL a reason but do not fail on dispatch failure in Cursor<CursorType>::RecvDeleteMe. r=dom-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D136588
2022-03-11 15:42:06 +00:00
Jens Stutte 753d662656 Bug 1750525: Give IPC_FAIL a reason in VersionChangeTransaction::RecvPBackgroundIDBCursorConstructor. r=dom-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D136587
2022-03-11 15:42:06 +00:00
Jens Stutte 62e7ea4221 Bug 1750525: Give IPC_FAIL a reason in VersionChangeTransaction::RecvPBackgroundIDBRequestConstructor. r=dom-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D136586
2022-03-11 15:42:06 +00:00
Jens Stutte 8255808312 Bug 1750525: Give IPC_FAIL a reason and remove obsolete MOZ_CRASH_UNLESS_FUZZING in VersionChangeTransaction::RecvRenameIndex. r=dom-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D136585
2022-03-11 15:42:05 +00:00
Jens Stutte 05460d6a66 Bug 1750525: Give IPC_FAIL a reason and remove obsolete MOZ_CRASH_UNLESS_FUZZING in VersionChangeTransaction::RecvDeleteIndex. r=dom-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D136584
2022-03-11 15:42:05 +00:00
Jens Stutte 152b3606f2 Bug 1750525: Give IPC_FAIL a reason and remove obsolete MOZ_CRASH_UNLESS_FUZZING in VersionChangeTransaction::RecvCreateIndex. r=dom-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D136583
2022-03-11 15:42:05 +00:00
Jens Stutte 0fbc89454a Bug 1750525: Give IPC_FAIL a reason and remove obsolete MOZ_CRASH_UNLESS_FUZZING in VersionChangeTransaction::RecvRenameObjectStore. r=dom-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D136582
2022-03-11 15:42:04 +00:00
Jens Stutte 3f0ab76f99 Bug 1750525: Give IPC_FAIL a reason and remove obsolete MOZ_CRASH_UNLESS_FUZZING in VersionChangeTransaction::RecvDeleteObjectStore. r=dom-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D136581
2022-03-11 15:42:04 +00:00
Jens Stutte 4a4f140b1c Bug 1750525: Give IPC_FAIL a reason and remove obsolete MOZ_CRASH_UNLESS_FUZZING in VersionChangeTransaction::RecvCreateObjectStore. r=dom-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D136580
2022-03-11 15:42:03 +00:00
Jens Stutte 303ba8a0f4 Bug 1750525: Do not IPC_FAIL in Database::RecvDeleteMe on Send__delete__ failure. r=dom-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D136161
2022-03-11 15:42:03 +00:00
Jens Stutte bc1da6b595 Bug 1750525: Do not IPC_FAIL in VersionChangeTransaction::RecvDeleteMe on Send__delete__ failure. r=dom-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D136144
2022-03-11 15:42:03 +00:00
Jens Stutte 16a5c5862d Bug 1750525: Add reason to IPC_FAIL in NormalTransaction::RecvPBackgroundIDBCursorConstructor. r=dom-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D136143
2022-03-11 15:42:02 +00:00
Jens Stutte ddecb67872 Bug 1750525: Add reason to IPC_FAIL in NormalTransaction::RecvPBackgroundIDBRequestConstructor. r=dom-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D136142
2022-03-11 15:42:02 +00:00
Jens Stutte 3c0eb5b832 Bug 1750525: Do not MOZ_CRASH_UNLESS_FUZZING for TransactionBase::RecvAbort failures. r=dom-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D136141
2022-03-11 15:42:02 +00:00
Jens Stutte 3fbae37159 Bug 1750525: Do not MOZ_CRASH_UNLESS_FUZZING for TransactionBase::RecvCommit failures. r=dom-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D136140
2022-03-11 15:42:01 +00:00
Jens Stutte b241ced8a1 Bug 1750525: Do not IPC_FAIL in NormalTransaction::RecvDeleteMe on Send__delete__ failure. r=dom-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D136139
2022-03-11 15:42:01 +00:00
Jens Stutte edcbbaa686 Bug 1750525: Give IPC_FAIL a reason in Database::RecvClose and rely on IPC to crash when appropriate. r=dom-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D136137
2022-03-11 15:42:00 +00:00
Jens Stutte ea0324073b Bug 1750525: Add reason to IPC_FAIL in Database::RecvBlocked if already closed. r=dom-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D136136
2022-03-11 15:42:00 +00:00
Jens Stutte 79032bbc1b Bug 1750525: Do not IPC_FAIL in Factory::RecvDeleteMe on send failure. r=dom-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D136135
2022-03-11 15:41:59 +00:00
Jens Stutte 6a6cf01877 Bug 1750525: Do not IPC_FAIL in BackgroundRequestChild::RecvPreprocess on SendContinue dispatch failure. r=dom-storage-reviewers,janv
If SendContinue(rv) fails, our channel is already dead so there is no need for another IPC_FAIL.

Differential Revision: https://phabricator.services.mozilla.com/D136134
2022-03-11 15:41:59 +00:00
Jens Stutte e6ac5384f1 Bug 1750525: Adjust comment in BackgroundDatabaseChild::RecvPBackgroundIDBVersionChangeTransactionConstructor. r=dom-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D136133
2022-03-11 15:41:59 +00:00
Jens Stutte 1acb0bafd7 Bug 1750525: Adjust BackgroundFactoryRequestChild::RecvPermissionChallenge IPC_FAIL cases. r=dom-storage-reviewers,janv
IPC_FAIL only when we see serious permission problems. Ignore dispatch failures as those already indicate dead actors.

Differential Revision: https://phabricator.services.mozilla.com/D136132
2022-03-11 15:41:58 +00:00
Barret Rennie 71030266fb Bug 1757846 - Treat BackstagePass as Window when checking for unexposed globals r=nika
Differential Revision: https://phabricator.services.mozilla.com/D140124
2022-03-09 20:55:36 +00:00
Nika Layzell 05dc5e0d76 Bug 1754037 - Part 3c: Automatically update all ParamTraits implementations, r=ipc-reviewers,media-playback-reviewers,bryce,mccr8
Automatically generated rewrites of all ParamTraits and IPDLParamTraits
implementations in-tree to use IPC::Message{Reader,Writer}.

Differential Revision: https://phabricator.services.mozilla.com/D140004
2022-03-04 15:39:41 +00:00
Jens Stutte d3dde1f608 Bug 1750525: Recv__delete__ should IPC_FAIL only on impossible parameters. r=dom-storage-reviewers,janv
All HandleResponse variants never return false and some Recv__delete__ already ignored their return values. Let's harmonize this (should not change anything during runtime). The only remaining failure case is "Unknwon response type!" which we want to IPC_FAIL, not to MOZ_CRASH. This moves the decision about crashing into the IPC layer, depending on process type and fuzzing status.

Differential Revision: https://phabricator.services.mozilla.com/D136131
2022-03-03 08:33:15 +00:00
Jari Jalkanen 972848b50f Bug 1736844 - Add interrupt flag to storage service methods opening database; r=dom-storage-reviewers,mak,janv
Differential Revision: https://phabricator.services.mozilla.com/D129023
2022-02-17 06:22:27 +00:00
Marian-Vasile Laza 1004df96d4 Backed out changeset 0ef0b43b28f1 (bug 1736844) for causing gtest failures. CLOSED TREE 2022-02-16 09:27:30 +02:00
Haiyang Xu 4f8cc77665 Bug 1736844 - Add interrupt flag to storage service methods opening database; r=dom-storage-reviewers,mak,janv
* The same flags can be used to enable other features such as extented error codes

Differential Revision: https://phabricator.services.mozilla.com/D129023
2022-02-16 06:08:11 +00:00
Sylvestre Ledru 98949ee751 Bug 1754767 - Remove duplicate includes r=media-playback-reviewers,padenot
Differential Revision: https://phabricator.services.mozilla.com/D138441
2022-02-11 10:01:15 +00:00
Nika Layzell dabb46c84d Bug 1736371 - Default new actors to be refcounted, r=alwu,media-playback-reviewers,mccr8
The changes to ipdl actors were mechanical, and largely automated using
a script.

Differential Revision: https://phabricator.services.mozilla.com/D137237
2022-02-09 17:29:47 +00:00
Nika Layzell 91ec85c593 Bug 1752444 - Part 2: Rewrite direct_call.py protocols to use {Parent,Child}Impl attributes, r=ipc-reviewers,media-playback-reviewers,alwu,mccr8
This is a mechanical change which was performed by a script based on the
contents of direct_call.py, and then manually checked over to fix
various rewriting bugs caused by my glorified sed script. See the
previous part for more context on the change.

Differential Revision: https://phabricator.services.mozilla.com/D137227
2022-02-09 17:29:46 +00:00
Jari Jalkanen bf6553c969 Bug 1708705 - Check new requests are rejected during structured cloning. r=dom-storage-reviewers,janv
The check is restored from the previous implementation.

Differential Revision: https://phabricator.services.mozilla.com/D137031
2022-02-02 12:42:10 +00:00
Benjamin VanderSloot 98ff74c145 Bug 1750008 - Make tests in dom/indexedDB/test/ dFPI compatible, r=timhuang,dom-storage-reviewers,asuth
We are fixing mochitests that fail when network.cookie.cookieBehavior = 5, i.e. when we enable Total Cookie Protection.
This is most often due to the test assuming that an origin will always have access to its storage state when embedded as
a third party.

In this case I had to request storage access to unpartition storage and allow the storage manager to see the estimates of storage size.
I also changed the clearStorage code to use the effectiveStoragePrincipal, which is the one that needs clearing.

Differential Revision: https://phabricator.services.mozilla.com/D136928
2022-01-31 17:58:34 +00:00
Jari Jalkanen a60d89964e Bug 1708705 - Handle transaction abort during value clone. r=dom-storage-reviewers,jstutte
Differential Revision: https://phabricator.services.mozilla.com/D125509
2022-01-26 09:18:24 +00:00
Nika Layzell 09d88e5fd2 Bug 1749059 - Remove Quantum DOM support from IPDL, r=ipc-reviewers,mccr8
This is no longer necessary as the Quantum DOM project is no longer
happening, and removing support simplifies various components inside of
IPDL.

As some code used the support to get a `nsISerialEventTarget` for an
actor's worker thread, that method was replaced with a method which
instead pulls the nsISerialEventTarget from the MessageChannel and
should work on all actors.

Differential Revision: https://phabricator.services.mozilla.com/D135411
2022-01-25 20:29:46 +00:00
Eden Chuang 2266b31d41 Bug 1744025 - Replace include "mozilla/dom/WorkerPrivate.h" with include "mozilla/dom/WorkerScope.h" where WorkerPrivate->GlobalScope() is called. r=dom-worker-reviewers,smaug,jstutte
#include "mozilla/dom/WorkerScope.h" is removed from WorkerPrivate.h, where calling WorkerPrivate::GlobalScope() without include "WorkerScope.h" makes WorkerScope as an incomplete type.


Depends on 132800

Depends on D132800

Differential Revision: https://phabricator.services.mozilla.com/D133483
2022-01-25 08:53:03 +00:00
Jens Stutte ab7030d6e5 Bug 1735191: Transition IDBTransaction to Finished state on actor abort and failed creation. r=dom-storage-reviewers,jari
Differential Revision: https://phabricator.services.mozilla.com/D135999
2022-01-15 10:12:45 +00:00
Randell Jesup c075d29d20 Bug 1625161: Move ASSERT_UNLESS_FUZZING() to mfbt and hook into FUZZING r=glandium,decoder
Differential Revision: https://phabricator.services.mozilla.com/D133166
2021-12-16 04:13:48 +00:00
Norisz Fay 5edb88e27a Backed out 9 changesets (bug 1744025) for causing wpt failures on CheckedUnsafePtr.h CLOSED TREE
Backed out changeset 89dca4fc5940 (bug 1744025)
Backed out changeset 7aa395dcdbe4 (bug 1744025)
Backed out changeset 1580a4ea1a85 (bug 1744025)
Backed out changeset af171636a87f (bug 1744025)
Backed out changeset a5edfa1c9cd6 (bug 1744025)
Backed out changeset 8abd6ba69815 (bug 1744025)
Backed out changeset cfb822df5b3f (bug 1744025)
Backed out changeset 5598943a94fd (bug 1744025)
Backed out changeset 43186fbbf8b4 (bug 1744025)
2021-12-15 18:46:01 +02:00
Eden Chuang 4146950108 Bug 1744025 - Replace include "mozilla/dom/WorkerPrivate.h" with include "mozilla/dom/WorkerScope.h" where WorkerPrivate->GlobalScope() is called. r=dom-worker-reviewers,smaug,jstutte
#include "mozilla/dom/WorkerScope.h" is removed from WorkerPrivate.h, where calling WorkerPrivate::GlobalScope() without include "WorkerScope.h" makes WorkerScope as an incomplete type.


Depends on 132800

Depends on D132800

Differential Revision: https://phabricator.services.mozilla.com/D133483
2021-12-15 13:48:19 +00:00
Kagami Sascha Rosylight 7233e2e6a4 Bug 1743439 - Part 2: Mark callers in dom/indexedDB and dom/workers as MOZ_CAN_RUN_SCRIPT_BOUNDARY r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D133361
2021-12-09 19:56:08 +00:00
Alexandru Michis 8941bcbb1e Backed out 6 changesets (bug 1743439) for causing bustages in AnimationEventDispatcher.h
CLOSED TREE

Backed out changeset 792c405d4afc (bug 1743439)
Backed out changeset 0376e73c7dce (bug 1743439)
Backed out changeset 23202094bc00 (bug 1743439)
Backed out changeset ba0fa3a8fa0e (bug 1743439)
Backed out changeset 7ad2746ec876 (bug 1743439)
Backed out changeset a919ef50cf33 (bug 1743439)
2021-12-09 19:36:12 +02:00
Kagami Sascha Rosylight ee178e2f59 Bug 1743439 - Part 2: Mark callers in dom/indexedDB and dom/workers as MOZ_CAN_RUN_SCRIPT_BOUNDARY r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D133361
2021-12-09 17:16:49 +00:00
Jari Jalkanen b8b6a50795 Bug 1741201 - Increase intermediate byte storage maximum capacity. r=dom-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D131235
2021-12-09 10:42:55 +00:00
Randell Jesup 08f296ee63 Bug 1743895: Add names to all TaskQueues, remove no-name constructor r=nika,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D132638
2021-12-03 03:16:15 +00:00
Chris Peterson f6fdbf028a Bug 1738401 - Remove -Wno-shadow warning suppressions. r=firefox-build-system-reviewers,glandium
-Wshadow warnings are not enabled globally, so these -Wno-shadow suppressions have no effect. I had intended to enable -Wshadow globally along with these suppressions in some directories (in bug 1272513), but that was blocked by other issues.

There are too many -Wshadow warnings (now over 2000) to realistically fix them all. We should remove all these unnecessary -Wno-shadow flags cluttering many moz.build files.

Differential Revision: https://phabricator.services.mozilla.com/D132289
2021-12-01 06:40:04 +00:00
Jan Varga 1af2efb302 Bug 1731977 - Add MOZ_TO_RESULT_INVOKE_TYPED for invoking plain functions; r=dom-storage-reviewers,jari
Differential Revision: https://phabricator.services.mozilla.com/D126329
2021-11-30 05:05:53 +00:00
Jan Varga a7f7389681 Bug 1731969 - Rename ToResultInvoke member function overloads to ToResultInvokeMember; r=dom-storage-reviewers,jari
Differential Revision: https://phabricator.services.mozilla.com/D126328
2021-11-30 05:05:53 +00:00
Jan Varga adc8da34e9 Bug 1731960 - Move all Result extensions from QMResult.h to a dedicated file; r=dom-storage-reviewers,jari
Differential Revision: https://phabricator.services.mozilla.com/D126324
2021-11-30 05:05:51 +00:00
Haiyang Xu 4aae583bea Bug 1726809 - Simplify QuotaManager::GetOrCreate and intermediate state of opening QuotaManager; r=dom-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D131592
2021-11-28 00:09:56 +00:00
Butkovits Atila 7f647e7f41 Backed out changeset b4b0ae95055b (bug 1726809) for causing build bustages at ActorsParent.cpp. CLOSED TREE 2021-11-26 12:02:18 +02:00
Haiyang Xu a12fd4fda6 Bug 1726809 - Simplify QuotaManager::GetOrCreate and intermediate state of opening QuotaManager; r=dom-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D131592
2021-11-26 09:20:57 +00:00
Mark Banner dfb34709b9 Bug 1656282 - Enable ESLint no-unused-vars and no-undef rules where they are disabled on dom/**/*.xhtml files. r=smaug
Depends on D131911

Differential Revision: https://phabricator.services.mozilla.com/D131980
2021-11-24 11:26:37 +00:00
Nika Layzell d73755617d Bug 1732343 - Part 2: Migrate all uses of base::FileDescriptor to UniqueFileHandle, r=handyman
This is useful for the following parts, as UniqueFileHandle is a cross-platform
type which can also be used to support transferring HANDLEs between processes.

This change requires fairly sweeping changes to existing callsites, which
previously did not require owning access to the handle types when transferring.
For the most part these changes were straightforward, but manual.

Differential Revision: https://phabricator.services.mozilla.com/D126564
2021-11-09 14:17:32 +00:00
Gerald Squelart 5399574d8b Bug 1738627 - profiler_thread_is_being_profiled_for_markers - r=canaltinova
`profiler_thread_is_being_profiled` is used a lot for markers, so it makes sense to have a specialized version, which is a bit shorter, and lives in ProfilerMarkers.h.

Differential Revision: https://phabricator.services.mozilla.com/D130009
2021-11-08 23:59:35 +00:00
ssummar 0992acc367 Bug 1603127 - Replaced mozilla::Tuple with std::tuple and applied structured bindings in mozilla/Encoding.h. r=hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D129920
2021-11-08 08:14:00 +00:00
Cristian Tuns 71486b8924 Backed out changeset 7e8e3747c3f8 (bug 1603127) for causing toolchains build bustages (Bug 1739589). CLOSED TREE 2021-11-05 07:23:45 -04:00
Cristian Tuns cbd178830f Backed out 10 changesets (bug 1732343) for causing coverage build bustages (Bug 1739590).
Backed out changeset bba94c79f3e1 (bug 1732343)
Backed out changeset d30fa1e1f605 (bug 1732343)
Backed out changeset ed0b4f757c4b (bug 1732343)
Backed out changeset a272da134c34 (bug 1732343)
Backed out changeset ccb259d73843 (bug 1732343)
Backed out changeset a292990b62de (bug 1732343)
Backed out changeset 7d1854782ca8 (bug 1732343)
Backed out changeset 29eaabd9ffb3 (bug 1732343)
Backed out changeset 1aa26657a7a6 (bug 1732343)
Backed out changeset 7a6708dc620a (bug 1732343)
2021-11-05 07:21:04 -04:00
Cristian Tuns 1aeac93d23 Backed out 5 changesets (bug 1738627) for causing xpcshell failures on test_ext_geckoProfiler_schema.js CLOSED TREE
Backed out changeset 42d385d7da97 (bug 1738627)
Backed out changeset edeb3a338954 (bug 1738627)
Backed out changeset 98f02e35134d (bug 1738627)
Backed out changeset 711daa6dd24b (bug 1738627)
Backed out changeset 49e12753a40c (bug 1738627)
2021-11-05 05:12:28 -04:00
Gerald Squelart 7fa084ae7c Bug 1738627 - profiler_thread_is_being_profiled_for_markers - r=canaltinova
`profiler_thread_is_being_profiled` is used a lot for markers, so it makes sense to have a specialized version, which is a bit shorter, and lives in ProfilerMarkers.h.

Differential Revision: https://phabricator.services.mozilla.com/D130009
2021-11-05 05:52:28 +00:00
ssummar 508562cc85 Bug 1603127 - Replaced mozilla::Tuple with std::tuple and applied structured bindings in mozilla/Encoding.h. r=hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D129920
2021-11-05 05:33:58 +00:00
Nika Layzell b8279164db Bug 1732343 - Part 2: Migrate all uses of base::FileDescriptor to UniqueFileHandle, r=handyman
This is useful for the following parts, as UniqueFileHandle is a cross-platform
type which can also be used to support transferring HANDLEs between processes.

This change requires fairly sweeping changes to existing callsites, which
previously did not require owning access to the handle types when transferring.
For the most part these changes were straightforward, but manual.

Differential Revision: https://phabricator.services.mozilla.com/D126564
2021-11-04 19:20:17 +00:00
Kagami Sascha Rosylight 0831f3344d Bug 1736563 - Part 4: Remove redundant BFCache includes r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D129332
2021-10-28 22:20:01 +00:00
Yoshi Cheng-Hao Huang 817bdf1566 Bug 1719542 - Part 4: Make calling nsTArray::SetCapacity fallible. r=platform-i18n-reviewers,dminor
Originally nsCollation::AllocateRawSortKey used an infallible nsTArray[1],
however, for IndexedDB it used a fallible nsTArray instead[2], so making
SetCapacity fallible.

[1]: https://hg.mozilla.org/mozilla-central/rev/1a74809df6b9#l3.150
[2]: https://searchfox.org/mozilla-central/rev/ff5309e67b20a9976ea762f9ec5f657da0801490/dom/indexedDB/Key.cpp#673

Differential Revision: https://phabricator.services.mozilla.com/D129378
2021-10-25 18:23:12 +00:00
Yoshi Cheng-Hao Huang f3f6bce604 Bug 1719542 - Part 3: Unify IndexedDB key. r=platform-i18n-reviewers,gregtatum
For Key::EncodeLocaleString change, the test should be convered in
dom/indexedDB/test/gtest/TestKey.cpp.

Differential Revision: https://phabricator.services.mozilla.com/D129000
2021-10-25 18:23:11 +00:00
ssummar 51c0ff21e5 Bug 1626517 - Replaced mozilla::Unused with mozilla::Ignore in mozilla::Decoder/mozilla::Encoder calls. r=m_kato
Differential Revision: https://phabricator.services.mozilla.com/D129022
2021-10-25 12:31:41 +00:00
Steve Fink 436b3f12a2 Bug 1732161 - Track CCReason for all cycle collections (replacing ccType) r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D126395
2021-10-14 18:15:40 +00:00
criss 0ecd4a450b Backed out 6 changesets (bug 1732161) for causing linux base toolchains bustages. CLOSED TREE
Backed out changeset 766a1bc74001 (bug 1732161)
Backed out changeset aed63de28354 (bug 1732161)
Backed out changeset 98eaff0d5124 (bug 1732161)
Backed out changeset 76c21ec8ffb6 (bug 1732161)
Backed out changeset 49dcac272f05 (bug 1732161)
Backed out changeset 67d81f8f413e (bug 1732161)
2021-10-14 05:38:08 +03:00
Steve Fink 0457cf4744 Bug 1732161 - Track CCReason for all cycle collections (replacing ccType) r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D126395
2021-10-13 22:32:59 +00:00
Narcis Beleuzu a92083a114 Backed out 6 changesets (bug 1732161) for build bustages on nsCycleCollectionParticipant.h CLOSED TREE
Backed out changeset 7271b938e71a (bug 1732161)
Backed out changeset d24b8450b7ed (bug 1732161)
Backed out changeset fb1838a152f2 (bug 1732161)
Backed out changeset 84787a58a428 (bug 1732161)
Backed out changeset 6acb82c0ac3c (bug 1732161)
Backed out changeset 50d17b172185 (bug 1732161)
2021-10-12 07:13:13 +03:00
Steve Fink 8db934daff Bug 1732161 - Track CCReason for all cycle collections (replacing ccType) r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D126395
2021-10-11 21:39:08 +00:00
Jan Varga 5a11502111 Bug 1731546 - Replace existing ToResultGet uses with MOZ_TO_RESULT_GET_TYPED; r=dom-storage-reviewers,jstutte,jari
Differential Revision: https://phabricator.services.mozilla.com/D125325
2021-10-11 06:00:15 +00:00
Jan Varga 572fb1f823 Bug 1731544 - Replace existing ToResult uses with MOZ_TO_RESULT; r=dom-storage-reviewers,jstutte
Differential Revision: https://phabricator.services.mozilla.com/D125324
2021-10-10 19:06:36 +00:00
Jens Stutte 2c7cda331d Bug 1731564: Use motivated SpinEventLoopUntil inside dom/*. r=smaug
Depends on D126714

Differential Revision: https://phabricator.services.mozilla.com/D126957
2021-10-07 08:06:11 +00:00
Marian-Vasile Laza 18fb16c542 Backed out 18 changesets (bug 1731564) for causing build bustages on SpinEventLoopUntil. CLOSED TREE
Backed out changeset 0464dbdc8584 (bug 1731564)
Backed out changeset 0d996df13545 (bug 1731564)
Backed out changeset 5630a0e7a109 (bug 1731564)
Backed out changeset 37b41d187cdb (bug 1731564)
Backed out changeset d37700fa60b6 (bug 1731564)
Backed out changeset b0ce7db44b99 (bug 1731564)
Backed out changeset aa5ec3aa1535 (bug 1731564)
Backed out changeset 73b648f1fa70 (bug 1731564)
Backed out changeset bb8fb0f9833e (bug 1731564)
Backed out changeset 0d8905144f5d (bug 1731564)
Backed out changeset 2cfb094a1ec3 (bug 1731564)
Backed out changeset 78d3b0257a6a (bug 1731564)
Backed out changeset e9d32926e93c (bug 1731564)
Backed out changeset 874cab520ce5 (bug 1731564)
Backed out changeset d8071cc32bd9 (bug 1731564)
Backed out changeset 283c5393cbbc (bug 1731564)
Backed out changeset 317bc38e3de5 (bug 1731564)
Backed out changeset 53e3f4862439 (bug 1731564)
2021-10-07 00:09:19 +03:00
Jens Stutte f764763e98 Bug 1731564: Use motivated SpinEventLoopUntil inside dom/*. r=smaug
Depends on D126714

Differential Revision: https://phabricator.services.mozilla.com/D126957
2021-10-06 19:45:12 +00:00
Butkovits Atila 2ff5314530 Backed out 6 changesets (bug 1732161) for causing assertion failures in CCGCScheduler.h. CLOSED TREE
Backed out changeset 88dbe1a7478c (bug 1732161)
Backed out changeset a5a2c9c53340 (bug 1732161)
Backed out changeset d83b36b92051 (bug 1732161)
Backed out changeset b339e54078d7 (bug 1732161)
Backed out changeset 0cbf901cab8b (bug 1732161)
Backed out changeset b3e894d590d9 (bug 1732161)
2021-10-05 03:47:08 +03:00
Steve Fink 7e1eb8957d Bug 1732161 - Track CCReason for all cycle collections (replacing ccType) r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D126395
2021-10-04 23:06:08 +00:00
Jan Varga 590fd74ae2 Bug 1728267 - Remove implicit ToResult from QM_TRY when no extra argument is passed in dom/indexedDB; r=dom-storage-reviewers,jstutte,jari
Differential Revision: https://phabricator.services.mozilla.com/D125318
2021-09-24 13:08:30 +00:00
Jan Varga b4ef3d074a Bug 1728267 - Remove implicit ToResult from QM_TRY when one extra argument is passed; r=dom-storage-reviewers,jstutte,jari
Differential Revision: https://phabricator.services.mozilla.com/D125316
2021-09-23 10:16:09 +00:00
Jan Varga 4cc9bf1d18 Bug 1728267 - Remove implicit ToResult from QM_TRY when two extra arguments are passed; r=dom-storage-reviewers,jstutte,jari
Differential Revision: https://phabricator.services.mozilla.com/D125315
2021-09-23 10:16:09 +00:00
Jan Varga eccdb851bb Bug 1728267 - Remove implicit ToResult from QM_WARNONLY_TRY macros; r=dom-storage-reviewers,jstutte,jari
We can use QM_TO_RESULT (instead of MOZ_TO_RESULT) because QM_WARNONLY_TRY
doesn't propagate errors, so no other adjustment is needed.

Differential Revision: https://phabricator.services.mozilla.com/D125314
2021-09-23 10:16:08 +00:00
Jan Varga c7dda8bf82 Bug 1728267 - Remove implicit ToResult from QM_TRY_RETURN; r=dom-storage-reviewers,jstutte,jari
Differential Revision: https://phabricator.services.mozilla.com/D125312
2021-09-23 04:06:11 +00:00
Greg Tatum c44707f33b Bug 1719540 - Used mozilla::intl::LocaleCanonicalizer in IndexedDB; r=dom-storage-reviewers,asuth
As part of the effort to unify the ICU calls, this replaces the calls for locale
canonicalization in IndexedDB code with the unified component. See Bug 1719664 for
more information.

Differential Revision: https://phabricator.services.mozilla.com/D120249
2021-09-01 00:02:30 +00:00
Alexandru Michis 7be95b70ef Backed out 2 changesets (bug 1719540) for causing bustages in RelativeTimeFormat.cpp
CLOSED TREE

Backed out changeset a6ab150a89f2 (bug 1719540)
Backed out changeset e8b05f56aa75 (bug 1719540)
2021-08-31 21:14:11 +03:00
Greg Tatum 32bb0fd95f Bug 1719540 - Used mozilla::intl::LocaleCanonicalizer in IndexedDB; r=dom-storage-reviewers,asuth
As part of the effort to unify the ICU calls, this replaces the calls for locale
canonicalization in IndexedDB code with the unified component. See Bug 1719664 for
more information.

Differential Revision: https://phabricator.services.mozilla.com/D120249
2021-08-31 15:39:39 +00:00
Kagami Sascha Rosylight a4e305afc2 Bug 1723050 - Part 15: Replace typedef by using in dom/indexedDB/ r=dom-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D121313
2021-08-16 17:05:41 +00:00
Gijs Kruitbosch 3355c934ef Bug 1724718 - forget AddTask.js ever existed as bug 1544051 already removed it, r=bgrins
Differential Revision: https://phabricator.services.mozilla.com/D122166
2021-08-10 22:33:06 +00:00
Gabriele Svelto 559377e821 Bug 1723934 - Remove useless nsExceptionHandler.h inclusions and crash reporter service definitions r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D121708
2021-08-09 20:08:17 +00:00
Jari Jalkanen b2adac0d90 Bug 1711657 - Rename Note to Info in Severity enum and QM_TRY macros. r=dom-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D121618
2021-08-04 09:39:55 +00:00
Jan Varga 00fa78b012 Bug 1661413 - Improve deleting files in DeleteFileManagerDirectory; r=dom-storage-reviewers,asuth
Differential Revision: https://phabricator.services.mozilla.com/D119588
2021-08-03 11:43:50 +00:00
Jan Varga e24eab6cc0 Bug 1661413 - Introduce a generic function for non-recursive traversing of directory entries in file manager directory; r=dom-storage-reviewers,asuth
Differential Revision: https://phabricator.services.mozilla.com/D119587
2021-08-03 11:43:50 +00:00
Jan Varga e9546b5acd Bug 1621920 - Convert IDB client to use the new macro for warning about unknown stuff in .files directory and add handling of unknown directories in .files directory; r=dom-storage-reviewers,asuth
Differential Revision: https://phabricator.services.mozilla.com/D119586
2021-08-03 10:46:28 +00:00
Kashav Madan 5781dca888 Bug 1720688 - Support extended attribute syntax in protocol declarations, r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D119975
2021-07-22 02:24:43 +00:00
Tooru Fujisawa cc92ef732d Bug 1708448 - Move property and element functions into js/public/PropertyAndElement.h. r=nbp
Differential Revision: https://phabricator.services.mozilla.com/D119619
2021-07-13 11:52:42 +00:00
Tooru Fujisawa bf37e9d86e Bug 1708432 - Move JS_Get*PropertyDescriptor* to js/public/PropertyDescriptor.h. r=nbp
Differential Revision: https://phabricator.services.mozilla.com/D119617
2021-07-13 11:52:41 +00:00
Jan Varga 28f6cf6f67 Bug 1718190 - QM: Move ScopedLogExtraInfo into own h/cpp files; r=dom-storage-reviewers,jstutte
Differential Revision: https://phabricator.services.mozilla.com/D118807
2021-06-25 10:21:27 +00:00
Jan Varga 3a8312aeeb Bug 1716568 - Move implementation details of InitializationInfo to a cpp file; r=dom-storage-reviewers,jstutte
Differential Revision: https://phabricator.services.mozilla.com/D118131
2021-06-23 21:26:07 +00:00
Jan Varga 3ba806fc14 Bug 1714283 - IDB: Fix building in non-unified builds; r=dom-storage-reviewers,jstutte
Differential Revision: https://phabricator.services.mozilla.com/D116683
2021-06-23 13:57:52 +00:00
Jan Varga f4a3bc258f Bug 1711848 - Add argument separation comments for QM_OR_ELSE(WARN|NOTE|LOG_VERBOSE)(_IF) uses; r=dom-storage-reviewers,jstutte
Differential Revision: https://phabricator.services.mozilla.com/D115465
2021-06-01 13:58:27 +00:00
Jan Varga f7d0092e58 Bug 1711656 - Rename QM_OR_ELSE_LOG to QM_OR_ELSE_LOG_VERBOSE; r=dom-storage-reviewers,jstutte
Differential Revision: https://phabricator.services.mozilla.com/D115363
2021-06-01 12:12:27 +00:00
Jan Varga 0f6f29a66b Bug 1711675 - IDB: Fix linking in non-unified builds; r=dom-storage-reviewers,jstutte
Differential Revision: https://phabricator.services.mozilla.com/D115362
2021-06-01 09:42:01 +00:00
Jan Varga 4b29ca0eb3 Bug 1711663 - Extract non-template stuff into base classes; r=dom-storage-reviewers,asuth
Differential Revision: https://phabricator.services.mozilla.com/D115361
2021-06-01 08:50:32 +00:00
Jan Varga 4d9b952881 Bug 1711663 - Clean up includes related to FileInfo/FileInfoManager/DatabaseFileInfo/DatabaseFileManager; r=dom-storage-reviewers,jstutte
Differential Revision: https://phabricator.services.mozilla.com/D115360
2021-06-01 08:50:32 +00:00
Jan Varga 6512568c97 Bug 1711663 - Rename FileManagerBase to FileInfoManager; r=dom-storage-reviewers,jstutte
Differential Revision: https://phabricator.services.mozilla.com/D115359
2021-06-01 08:50:31 +00:00
Jan Varga 36a184350d Bug 1711663 - Rename FileInfoT to FileInfo; r=dom-storage-reviewers,jstutte
This patch also renames FileManagerBase::FileInfo alias to
FileManagerBase::FileInfoType to fix a base toolchains compilation error.
FileManagerBase::AutoLock has been renamed to FileManagerBae::AutoLockType for
consistency.

Differential Revision: https://phabricator.services.mozilla.com/D115358
2021-06-01 07:04:28 +00:00
Jan Varga 11d7c96cba Bug 1711663 - Rename FileManager to DatabaseFileManager and TestFileManager to SimpleFileManager; r=dom-storage-reviewers,jstutte
Method arguments, member variables and method names related to FileManager were
not renamed since there are no other classes based on FileManager (except the
one defined in TestSimpleFileInfo.cpp).

Differential Revision: https://phabricator.services.mozilla.com/D115357
2021-06-01 03:42:47 +00:00
Iulian Moraru d762ddd8ca Backed out 5 changesets (bug 1711663) for causing build bustages on FileManager. CLOSED TREE
Backed out changeset 9f3260aaab11 (bug 1711663)
Backed out changeset adb6539a1e6f (bug 1711663)
Backed out changeset 2b58a824285d (bug 1711663)
Backed out changeset 28e04756a73d (bug 1711663)
Backed out changeset 8a36c84e9269 (bug 1711663)
2021-06-01 02:21:02 +03:00
Jan Varga ed53242a28 Bug 1711663 - Extract non-template stuff into base classes; r=dom-storage-reviewers,asuth
Differential Revision: https://phabricator.services.mozilla.com/D115361
2021-05-31 19:50:24 +00:00
Jan Varga 59a1206d96 Bug 1711663 - Clean up includes related to FileInfo/FileInfoManager/DatabaseFileInfo/DatabaseFileManager; r=dom-storage-reviewers,jstutte
Differential Revision: https://phabricator.services.mozilla.com/D115360
2021-05-31 19:50:24 +00:00
Jan Varga 5939683b83 Bug 1711663 - Rename FileManagerBase to FileInfoManager; r=dom-storage-reviewers,jstutte
Differential Revision: https://phabricator.services.mozilla.com/D115359
2021-05-31 19:50:24 +00:00
Jan Varga 6033873f4f Bug 1711663 - Rename FileInfoT to FileInfo; r=dom-storage-reviewers,jstutte
Differential Revision: https://phabricator.services.mozilla.com/D115358
2021-05-31 19:50:23 +00:00
Jan Varga 282dd5fc24 Bug 1711663 - Rename FileManager to DatabaseFileManager and TestFileManager to SimpleFileManager; r=dom-storage-reviewers,jstutte
Method arguments, member variables and method names related to FileManager were
not renamed since there are no other classes based on FileManager (except the
one defined in TestSimpleFileInfo.cpp).

Differential Revision: https://phabricator.services.mozilla.com/D115357
2021-05-31 19:50:23 +00:00
Jan Varga 5d60589d2b Bug 1711663 - Rename FileInfo to DatabaseFileInfo and TestFileInfo to SimpleFileInfo; r=dom-storage-reviewers,jstutte
Method arguments, member variables and method names related to FileInfo were
not renamed since there are no other classes based on FileInfo (except the one
defined in TestSimpleFileInfo.cpp).

Differential Revision: https://phabricator.services.mozilla.com/D115356
2021-05-31 17:44:19 +00:00
Tom Schuster 682bd47c13 Bug 1712701 - Assert hasValue in PropertyDescriptor before allowing access to the value. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D116161
2021-05-30 18:24:40 +00:00
Jan Varga e8c99aae18 Bug 1708643 - IDB: Replace QM_OR_ELSE_(WARN|LOG) with QM_OR_ELSE_(WARN|LOG)_IF in places where the fallback needs to be called conditionally; r=dom-storage-reviewers,asuth
Differential Revision: https://phabricator.services.mozilla.com/D115131
2021-05-30 11:08:02 +00:00
Jan Varga 7d1d36d350 Bug 1708643 - Rename orElseFunc argument to fallback in QM_OR_ELSE_REPORT definition; r=dom-storage-reviewers,jstutte
Differential Revision: https://phabricator.services.mozilla.com/D114843
2021-05-29 05:05:39 +00:00
Jens Stutte 61d67b9ff0 Bug 1706998: Replace QuotaManager::GetRef().MaybeRecordShutdownStep by static QuotaManager::(Safe)MaybeRecordQuotaClientShutdownStep; r=dom-storage-reviewers,janv
There are some few unsafe uses of MaybeRecordShutdownStep where the QuotaManager singleton may be  not (yet or anymore) alive.
In order to not add many unnecessary null checks, we drop GetRef and MaybeRecordShutdownStep in favor of
QuotaManager::MaybeRecordQuotaClientShutdownStep
QuotaManager::SafeMaybeRecordQuotaClientShutdownStep
with the sole difference that the Safe variant runtime checks the singleton, while the normal one only asserts.

Differential Revision: https://phabricator.services.mozilla.com/D115988
2021-05-28 06:46:04 +00:00
Peter Van der Beken f206ae96e4 Bug 1712725 - Stop clearing JS things when calling mozilla::DropJSObjects. r=mccr8
There's a pattern of clearing JS things when calling mozilla::DropJSObjects,
but mozilla::DropJSObjects already clears the JS things itself by calling
CycleCollectedJSRuntime::RemoveJSHolder.

Differential Revision: https://phabricator.services.mozilla.com/D115885
2021-05-27 08:35:40 +00:00
Jan Varga e016ebac70 Bug 1711181 - Add explanatory comments for some special uses of QM_OR_ELSE_WARN; r=dom-storage-reviewers,jstutte
Differential Revision: https://phabricator.services.mozilla.com/D115160
2021-05-21 09:30:30 +00:00
Jan Varga 4f5624297e Bug 1711181 - Use QM_OR_ELSE_LOG in remaining places where QM_OR_ELSE_WARN would spam the reports; r=dom-storage-reviewers,jstutte
Differential Revision: https://phabricator.services.mozilla.com/D115159
2021-05-21 09:30:30 +00:00
Jan Varga 52086b9801 Bug 1711181 - Change uses of ordinary orElse to QM_OR_ELSE_LOG; r=dom-storage-reviewers,jstutte
This is more consistent with other cases where we either use QM_OR_ELSE_WARN or
QM_OR_ELSE_NOTE. We will later change some uses of QM_OR_ELSE_LOG to
QM_OR_ELSE_LOG_IF. The switch from custom OrElseIf to Result::orElseIf will be
easier when we don't use OrElseIf directly.

This patch only changes uses of ordinary orElse introduced in bug 1701346.

Remaining uses will be handled in bug 1711180 (the ones that were missed in bug
1686191).

Differential Revision: https://phabricator.services.mozilla.com/D115055
2021-05-21 09:30:30 +00:00
Andi-Bogdan Postelnicu eab549fd19 Bug 1519636 - Initial reformat of C/C++ code with clang-format version 12.0.0. r=sylvestre
clang-format version 12.0.0 (taskcluster-KEgO7qdgQ8uaewA6NkRnRA)

Differential Revision: https://phabricator.services.mozilla.com/D114211
2021-05-10 07:15:07 +00:00
Andi-Bogdan Postelnicu a1f2f7329d Bug 1519636 - Reformat recent changes to the Google coding style. r=necko-reviewers,valentin,sylvestre
Updated with clang-format version 11.0.1 (taskcluster-GI8pmG3eQ_OSXfjFfr2yFw)

Differential Revision: https://phabricator.services.mozilla.com/D114618
2021-05-10 07:15:06 +00:00
Tom Schuster e9ca1492d0 Bug 1708698 - Stop using PropertyDescriptor object in browser. r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D113978
2021-05-07 12:29:06 +00:00
Jan Varga 42a2a6727f Bug 1709067 - IDB: Remove module specific QM_TRY macros; r=dom-storage-reviewers,jstutte
Differential Revision: https://phabricator.services.mozilla.com/D114080
2021-05-03 19:44:38 +00:00
Jan Varga 2372314fa1 Bug 1690025 - Move and rename DirectoryLock::Specialize to UniversalDirectoryLock::SpecializeForClient; r=dom-storage-reviewers,asuth
This patch also changes the only consumer to not depend on the lock passed to
OpenDirectoryListener::DirectoryLockAcquired because it uses the base type (
unsafe static_cast would have to be used).

Differential Revision: https://phabricator.services.mozilla.com/D104804
2021-05-02 09:57:15 +00:00
Jan Varga 013cdf36b7 Bug 1702599 - Report missing database in UpgradeStorageFrom1_0To2_0 as a warning (instead of an error); r=dom-storage-reviewers,jstutte,asuth
At the time we didn't have the warning QM_TRY macros, so the only option was to
replace NS_WARN_IF with IDB_TRY. We now have QM_WARNONLY_TRY which is exatly
what we need here.

Differential Revision: https://phabricator.services.mozilla.com/D113505
2021-04-28 07:33:54 +00:00
Snehaa2296 09364424fc Bug 1334986 - changed the parameters in declarations and definitions of Transaction Base::VerifyRequestParams. r=sg
Depends on D106257

Differential Revision: https://phabricator.services.mozilla.com/D106584
2021-04-14 11:44:24 +00:00
Dylan Franken 6b80a97364 Bug 1680751 - Change KeyPathType to an enum class. r=ttung,dom-storage-reviewers,asuth
Differential Revision: https://phabricator.services.mozilla.com/D110346
2021-03-31 18:28:40 +00:00
Jan Varga 7af1c09409 Bug 1701346 - IDB: Revert QM_OR_ELSE_WARN to ordinary orElse in QuotaClient::GetUsageForOriginInternal; r=asuth,dom-storage-reviewers,jstutte
Differential Revision: https://phabricator.services.mozilla.com/D109991
2021-03-27 13:08:07 +00:00
Simon Giesecke 613e20d136 Bug 1184468 - Use nsBaseHashtable::Values. r=xpcom-reviewers,nika
Differential Revision: https://phabricator.services.mozilla.com/D108587
2021-03-24 17:56:49 +00:00
Simon Giesecke ecfd65d610 Bug 1698871 - Use SafeRefPtr for mMappedBlobs. r=dom-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D109365
2021-03-24 13:21:50 +00:00
Jan Varga 7d3ef83b0f Bug 1686191 - Have a way to specifically report warnings around QM_TRY; r=asuth,sg,dom-storage-reviewers
This patch:
- adds QM_WARNONLY_TRY/QM_NOTEONLY_TRY macros
- adds QM_WARNONLY_TRY_UNWRAP/QM_NOTEONLY_TRY_UNWRAP macros
- adds QM_OR_ELSE_WARN/QM_OR_ELSE_NOTE sub macros
- replaces non-propagating uses of NS_WARNING with redundant messages by
  QM_WARNONLY_TRY
- replaces uses of QM_TRY with orElse by QM_TRY(QM_OR_ELSE_WARN(...))
- replaces uses of QM_TRY inside an extra lambda with QM_WARNONLY_TRY
- replaces uses of QM_TRY with QM_VOID with QM_WARNONLY_TRY.
- replaces uses of QM_TRY with unwanted warnings with QM_NOTEONLY_TRY
- replaces uses of QM_TRY with additional Maybe wrapping for doing a
  fallback with QM_TRY(QM_OR_ELSE_WARN(...))

Differential Revision: https://phabricator.services.mozilla.com/D108424
2021-03-24 12:27:53 +00:00
Butkovits Atila 9fc0210ad3 Backed out changeset 2a3316bd2409 (bug 1686191) for causing bustages on QuotaCommon.h. CLOSED TREE 2021-03-24 07:12:55 +02:00
Jan Varga 6edcf204fd Bug 1686191 - Have a way to specifically report warnings around QM_TRY; r=asuth,sg,dom-storage-reviewers
This patch:
- adds QM_WARNONLY_TRY/QM_NOTEONLY_TRY macros
- adds QM_WARNONLY_TRY_UNWRAP/QM_NOTEONLY_TRY_UNWRAP macros
- adds QM_OR_ELSE_WARN/QM_OR_ELSE_NOTE sub macros
- replaces non-propagating uses of NS_WARNING with redundant messages by
  QM_WARNONLY_TRY
- replaces uses of QM_TRY with orElse by QM_TRY(QM_OR_ELSE_WARN(...))
- replaces uses of QM_TRY inside an extra lambda with QM_WARNONLY_TRY
- replaces uses of QM_TRY with QM_VOID with QM_WARNONLY_TRY.
- replaces uses of QM_TRY with unwanted warnings with QM_NOTEONLY_TRY
- replaces uses of QM_TRY with additional Maybe wrapping for doing a
  fallback with QM_TRY(QM_OR_ELSE_WARN(...))

Differential Revision: https://phabricator.services.mozilla.com/D108424
2021-03-24 04:40:10 +00:00
Simon Giesecke af20b2ddf6 Bug 708901 - Migrate to nsTHashSet in dom/indexedDB. r=dom-storage-reviewers,janv
Depends on D108595

Differential Revision: https://phabricator.services.mozilla.com/D108596
2021-03-23 10:36:33 +00:00
Florian Quèze 8ad1e5d0aa Bug 1699742 - Remove MOZ_GECKO_PROFILER ifdefs that are no longer needed, r=gerald.
Differential Revision: https://phabricator.services.mozilla.com/D109078
2021-03-22 16:29:52 +00:00
Simon Giesecke 57f6b5ad54 Bug 1698871 - Use SafeRefPtr with FullIndexMetadata/FullObjectStoreMetadata. r=dom-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D108659
2021-03-22 15:18:36 +00:00
smolnar 20bfecac32 Backed out 2 changesets (bug 1698871) backed out for causing mochitest and xpc failures in SafeRefPtr. CLOSED TREE
Backed out changeset 1c617ab7df90 (bug 1698871)
Backed out changeset c3605f06194b (bug 1698871)
2021-03-22 16:40:12 +02:00
Simon Giesecke 416a6c2f7a Bug 1669730 - Add telemetry for number of attempts to open an unknown objectstore. r=dom-workers-and-storage-reviewers,edenchuang
Differential Revision: https://phabricator.services.mozilla.com/D92775
2021-03-22 13:24:18 +00:00